diff --git a/addons_updater/rootfs/etc/cont-init.d/99-run.sh b/addons_updater/rootfs/etc/cont-init.d/99-run.sh index 168685adb..400dbcc0e 100755 --- a/addons_updater/rootfs/etc/cont-init.d/99-run.sh +++ b/addons_updater/rootfs/etc/cont-init.d/99-run.sh @@ -201,7 +201,7 @@ for f in */; do # If failure, checks if there is packages that could be used function test_packages () { - if [[ "$SOURCE" == "github" ]] && [[ ${LASTVERSION,,} == *"no release found"* ]]; then + if [[ "$SOURCE" == "github" ]] && [[ ${LASTVERSION,,:-} == *"no release found"* ]]; then # Is there a package echo "No version found, looking if packages available" last_packages="$(curl -s https://github.com/"$REPOSITORY"/packages | sed -n "s/.*\/container\/package\/\([^\"]*\).*/\1/p")" || true