diff --git a/scripts/Windows/Software/Nextcloud/Manage.ps1 b/scripts/Windows/Software/Nextcloud/Manage.ps1 index b912d61ae..ec486a31b 100644 --- a/scripts/Windows/Software/Nextcloud/Manage.ps1 +++ b/scripts/Windows/Software/Nextcloud/Manage.ps1 @@ -2,7 +2,9 @@ $null = New-Module { function Restore-Nextcloud([Context] $context) { - if (-not (choco list --exact nextcloud-client)) { + choco list --exact nextcloud-client + + if (-not $?) { Write-Information "Installing Nextcloud Client"; choco install nextcloud-client -y --params="'/KeepUpdateCheck'"; }