]> WPIA git - infra.git/blobdiff - manager/setup
fix: correct non-interactive forcing of apt commands
[infra.git] / manager / setup
index 0c5643b1ba0e13f6e3a63a0a7509a050147131e1..7f38205770300e1ffce97f120b11cdaa9018882d 100755 (executable)
@@ -36,7 +36,7 @@ function reset_vm {
 }
 function update {
     title 'S1: apt-get; clone'
-    ssh_target -t "( sudo apt-get update | cat ) && ( DEBIAN_FRONTEND=noninteractive sudo -E apt-get upgrade -o Dpkg::Options::=\"--force-confold\" -y | cat ) && ( sudo apt-get install -y git curl $devPkgs | cat )"
+    ssh_target -t "{ sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo -E apt-get upgrade -o Dpkg::Options::=\"--force-confold\" -y && sudo apt-get install -y git curl $devPkgs; } | cat"
     echo "Git init"
     ssh_target -t '[[ -d .git ]] || git init;'
     echo "Git push"