Replies: 1 comment 3 replies
-
You can use any combination of these conditions: if (Get-Command scoop -ErrorAction Ignore) { ... }
$scooppath = if ($Env:SCOOP) { $Env:SCOOP } else { "~\scoop" }
if (Test-Path $scooppath -ErrorAction Ignore) { ... } |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Do you know how can I check if Scoop already exists in the os or not, the reason for my question is that I tried to run a scoop script for the second time and I got the following Error:
Scoop is already installed. Run 'scoop update' to get the latest version.
Abort.
I need to run the Scoop script as much as I can when I add new apps to the script, the silently run of the script needs to be smooth and not buggy.
any idea?
Beta Was this translation helpful? Give feedback.
All reactions