Refactor nextcloud installation check
This commit is contained in:
parent
6e02c8b903
commit
f58ce2bfe9
1 changed files with 3 additions and 1 deletions
|
@ -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'";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue