mirror of
https://github.com/ScoopInstaller/Scoop.git
synced 2026-08-27 16:46:38 +00:00
installed_apps returns empty when no appdir
This commit is contained in:
+3
-1
@@ -19,7 +19,9 @@ function appdir($app) { "$scoopdir\apps\$app" }
|
||||
function versiondir($app, $version) { "$(appdir $app)\$version" }
|
||||
function installed($app) { return test-path (appdir $app) }
|
||||
function installed_apps {
|
||||
gci ( "$scoopdir\apps") | where { $_.psiscontainer -and $_.name -ne 'scoop' } | % { $_.name }
|
||||
if(test-path "$scoopdir\apps") {
|
||||
gci ( "$scoopdir\apps") | where { $_.psiscontainer -and $_.name -ne 'scoop' } | % { $_.name }
|
||||
}
|
||||
}
|
||||
|
||||
# paths
|
||||
|
||||
Reference in New Issue
Block a user