mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-03 06:40:05 +00:00
Meta: Check if SERENITY_USE_SDCARD is set before checking its value
This avoids a bash complaint for the new option
This commit is contained in:
parent
f7608ba269
commit
875c3d109f
Notes:
sideshowbarker
2024-07-18 02:13:10 +09:00
Author: https://github.com/ADKaster
Commit: 875c3d109f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue