diff --git a/zzz_templates/automatic_packages.sh b/zzz_templates/automatic_packages.sh index 7dabeb652..9ff1c2de1 100644 --- a/zzz_templates/automatic_packages.sh +++ b/zzz_templates/automatic_packages.sh @@ -70,12 +70,12 @@ for files in "/scripts" "/etc/cont-init.d"; do [ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES git" fi - if [[ $(grep -rn "$files/" -e 'sponge') ]]; then + if [[ $(grep -rnw "$files/" -e 'sponge') ]]; then [ $PACKMANAGER = "apk" ] && PACKAGES="$PACKAGES moreutils" [ $PACKMANAGER = "apt" ] && PACKAGES="$PACKAGES moreutils" fi - if [[ $(grep -rn "$files/" -e 'lastversion') ]]; then + if [[ $(grep -rnw "$files/" -e 'lastversion') ]]; then [ $PACKMANAGER = "apk" ] && apk add --no-cache pip \ && pip install --upgrade pip \ && pip install lastversion