winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Winget export does not check path

Open JonLevin25 opened this issue 3 years ago • 0 comments

Brief description of your issue

Winget export will proceed with export even if given an invalid path

Steps to reproduce

winget export -o NONEXISTANT:\file

Expected behavior

An error message and non-zero exit code (before checking pacakges)

Actual behavior

Winget proceeds to check all packages (Warning about unavailable packages) When done, no error is output, but no file is saved.

Environment

Windows Package Manager v1.3.2091
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19044.2006
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2091.0

JonLevin25 avatar Oct 03 '22 09:10 JonLevin25