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

fix: Replace BOOT variable trimming logic (#1050)

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

[ -n "$BOOT" ] && BOOT=$(expr "$BOOT" : "^\ *\(.*[^ ]\)\ *$")
BOOT="${BOOT#"${BOOT%%[! ]*}"}"
BOOT="${BOOT%"${BOOT##*[! ]}"}"

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