From fc727ef106e29331e57d4593bc8b52ae4965783b Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 10 Dec 2021 04:09:28 +0100 Subject: [PATCH] Update automatic_packages.sh --- zzz_templates/automatic_packages.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zzz_templates/automatic_packages.sh b/zzz_templates/automatic_packages.sh index 31b989222..6089d6720 100644 --- a/zzz_templates/automatic_packages.sh +++ b/zzz_templates/automatic_packages.sh @@ -130,6 +130,9 @@ fi for files in "/scripts" "/etc/cont-init.d"; do +# Next directory if does not exists +if ! ls $files 1> /dev/null 2>&1; then continue; fi + # Bashio if [[ $(grep -rnw "$files/" -e 'bashio') ]] && [ ! -f "/usr/bin/bashio" ]; then [ $VERBOSE = true ] && echo "install bashio"