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

fix: Remove quotes from BOOT variable (#1038)

parent efdcd319
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -50,7 +50,7 @@ case "${BOOT_MODE,,}" in
    BOOT_DESC=" with SeaBIOS"
    ;;
  "custom" )
    BOOT_OPTS="-bios \"$BIOS\""
    BOOT_OPTS="-bios $BIOS"
    BOOT_DESC=" with custom BIOS file"
    ;;
  *)
+1 −1
Original line number Diff line number Diff line
@@ -309,7 +309,7 @@ if hasDisk; then
fi

if [[ "${BOOT}" == \"*\" || "${BOOT}" == \'*\' ]]; then
  VERSION="${BOOT:1:-1}"
  BOOT="${BOOT:1:-1}"
fi

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