diff --git a/commands/get-app b/commands/get-app index 4f31371b3..b40647370 100755 --- a/commands/get-app +++ b/commands/get-app @@ -84,7 +84,11 @@ function get_app() ( echo-error 'Install Winget to be able to detect applications' return 6 # ENXIO 6 Device not configured fi - winget.exe list "$name" + if test "$quiet" = 'yes'; then + winget.exe list --disable-interactivity "$name" &> /dev/null + else + winget.exe list --disable-interactivity "$name" + fi return else echo-error 'Support for Applications not added yet for this platform.' diff --git a/commands/setup-util b/commands/setup-util index 2b97bb55b..6f964bc8b 100755 --- a/commands/setup-util +++ b/commands/setup-util @@ -3098,7 +3098,7 @@ function setup_util() ( # https://docs.microsoft.com/en-us/windows/package-manager/winget/ # https://docs.microsoft.com/en-us/windows/package-manager/winget/install function is_this_winget_package_installed { - winget.exe list --id="$package" &>/dev/null + winget.exe list --disable-interactivity --id="$package" &>/dev/null } function are_any_of_these_winget_packages_installed { # 👍 /docs/bash/errors: robust exit status local package packages=("$@")