winget-cli
winget-cli copied to clipboard
Winget export does not check path
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