diff --git a/handlers/chocolatey/install b/handlers/chocolatey/install index 7990a5b..77465ce 100755 --- a/handlers/chocolatey/install +++ b/handlers/chocolatey/install @@ -1,6 +1,6 @@ #!/bin/sh # https://stackoverflow.com/questions/43650595/is-there-a-command-to-check-if-git-bash-is-opened-in-administrator-mode/58846650#58846650 if [[ $(sfc 2>&1 | tr -d '\0') =~ SCANNOW ]] -then choco install "$@" +then choco install --limit-output "$@" else exec powershell -Command "Start-Process 'choco' -Verb runAs -ArgumentList 'install $*'" fi \ No newline at end of file diff --git a/i.ps1 b/i.ps1 index ff0018e..79b5fe0 100644 --- a/i.ps1 +++ b/i.ps1 @@ -1,6 +1,6 @@ # manual execution: Set-ExecutionPolicy Bypass -Scope Process -Force; .\i -(Test-Path "$PWD\instalee") -and (cd instalee) +(Test-Path "$PWD\instalee" -PathType Container) -and (cd instalee) | out-null packages\chocolatey\powershell.ps1 Start-Process -Wait choco -Verb runAs -ArgumentList 'install git' Start-Process -Wait "C:\Program Files\Git\git-bash.exe" -Verb runAs -ArgumentList "-c './instalee win/office; sleep 10 || bash'" -Sleep 10 \ No newline at end of file +# Sleep 10 \ No newline at end of file