From 16dfadd472da6ab7f79b64c129feb3ca4804718b Mon Sep 17 00:00:00 2001 From: pvincent Date: Sun, 18 Jun 2023 09:49:10 +0400 Subject: [PATCH] reflexive install without idem_apt_install --- install.sh | 3 ++- tools/debian_bash_upgrade | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b04cfba..52d686c 100755 --- a/install.sh +++ b/install.sh @@ -56,7 +56,8 @@ function install_host() { fi done - sudo /opt/debian_bash/tools/idem_apt_install "${REQUIRED_PKGS[@]}" + apt update + apt install -y "${REQUIRED_PKGS[@]}" fi } diff --git a/tools/debian_bash_upgrade b/tools/debian_bash_upgrade index 973b3b9..89c0381 100755 --- a/tools/debian_bash_upgrade +++ b/tools/debian_bash_upgrade @@ -1,5 +1,7 @@ #!/bin/bash +set -Eeuo pipefail + if [[ -d /opt/debian-bash ]]; then local_release=$(cat /opt/debian-bash/.semver_git_tag) fi