From 875c3d109fbbc4941a2a5d058b9097c979ef38f6 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 2 Apr 2023 13:07:31 -0600 Subject: [PATCH] Meta: Check if SERENITY_USE_SDCARD is set before checking its value This avoids a bash complaint for the new option --- Meta/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/run.sh b/Meta/run.sh index e9615265e4..83d196235e 100755 --- a/Meta/run.sh +++ b/Meta/run.sh @@ -254,7 +254,7 @@ else fi fi -if [ "$SERENITY_USE_SDCARD" -eq 1 ]; then +if [ -n "${SERENITY_USE_SDCARD}" ] && [ "${SERENITY_USE_SDCARD}" -eq 1 ]; then SERENITY_BOOT_DRIVE="-device sdhci-pci -device sd-card,drive=sd-boot-drive -drive id=sd-boot-drive,if=none,format=raw,file=${SERENITY_DISK_IMAGE}" SERENITY_KERNEL_CMDLINE="$SERENITY_KERNEL_CMDLINE root=sd2:0:0" fi