From 8f63a39d202f1c96f76b269c305906dd5ebdc0a7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 17 Feb 2022 22:17:49 +0100 Subject: [PATCH] Update automatic_packages.sh --- .templates/automatic_packages.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.templates/automatic_packages.sh b/.templates/automatic_packages.sh index 1f723554d..71bd005ec 100644 --- a/.templates/automatic_packages.sh +++ b/.templates/automatic_packages.sh @@ -20,7 +20,7 @@ PACKAGES="${*:-}" ############################ COMMAND="apk" -if command -v $COMMAND &>/dev/null; then +if command -v "$COMMAND" &>/dev/null; then # If apk based [ "$VERBOSE" = true ] && echo "apk based" PACKMANAGER="apk" @@ -137,6 +137,7 @@ done if [ "$PACKMANAGER" = "apt" ]; then apt-get update >/dev/null; fi # Install apps one by one to allow failures +# shellcheck disable=SC2086 for packagestoinstall in $PACKAGES; do [ "$VERBOSE" = true ] && echo "... $packagestoinstall" if [ "$PACKMANAGER" = "apk" ]; then