Refactor nextcloud installation check

This commit is contained in:
Manuel Thalmann 2023-07-01 04:33:07 +02:00
parent 6e02c8b903
commit f58ce2bfe9

View file

@ -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'";
}