Unverified Commit a3133605 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Check for empty BOOT expression (#1021)

parent 6d907945
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -312,7 +312,7 @@ if [[ "${BOOT}" == \"*\" || "${BOOT}" == \'*\' ]]; then
  VERSION="${BOOT:1:-1}"
fi

BOOT=$(expr "$BOOT" : "^\ *\(.*[^ ]\)\ *$")
[ -n "$BOOT" ] && BOOT=$(expr "$BOOT" : "^\ *\(.*[^ ]\)\ *$")

if [ -z "$BOOT" ] || [[ "$BOOT" == *"example.com/"* ]]; then