From 7f3733852406eadf0fb874c7566c9fe837d8ebcc Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 8 Dec 2021 19:05:37 +0100 Subject: [PATCH] Update automatic_packages.sh --- zzz_templates/automatic_packages.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zzz_templates/automatic_packages.sh b/zzz_templates/automatic_packages.sh index 0ac5e9a16..a8526820b 100644 --- a/zzz_templates/automatic_packages.sh +++ b/zzz_templates/automatic_packages.sh @@ -65,17 +65,17 @@ for files in "/scripts" "/etc/cont-init.d" "/etc"; do [ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES yamllint" fi - if [ $(grep -rnw "$files" -e 'git' &>/dev/null) ]; then + if [ $(grep -rnw "$files" -e 'git') ]; then [ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES git" [ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES git" fi - if [ $(grep -rnw "$files" -e 'sponge' &>/dev/null) ]; then + if [ $(grep -rnw "$files" -e 'sponge') ]; then [ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES moreutils" [ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES moreutils" fi - if [ $(grep -rnw "$files" -e 'lastversion' &>/dev/null) ]; then + if [ $(grep -rnw "$files" -e 'lastversion') ]; then [ $PACKMANAGER = "apk" ] && apk add --no-cache pip \ && pip install --upgrade pip \ && pip install lastversion