mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
run: Unbreak this script when running with a regular Bourne /bin/sh
We can't use bashisms in our scripts anymore, since we're trying to keep them POSIXy (to make them easier to run for our own shell someday)
This commit is contained in:
parent
69ca9cfd78
commit
dd1996ca68
Notes:
sideshowbarker
2024-07-19 11:14:09 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/dd1996ca68a
1 changed files with 4 additions and 2 deletions
|
@ -53,8 +53,10 @@ elif [ "$1" = "qgrub" ]; then
|
|||
-device e1000,netdev=breh
|
||||
elif [ "$1" = "qcmd" ]; then
|
||||
SERENITY_KERNEL_CMDLINE=""
|
||||
for (( i=2; i<=$#; i++)); do
|
||||
SERENITY_KERNEL_CMDLINE+="${!i} "
|
||||
# FIXME: Someone who knows sh syntax better, please help:
|
||||
for i in `seq 2 $#`; do
|
||||
shift
|
||||
SERENITY_KERNEL_CMDLINE="$SERENITY_KERNEL_CMDLINE $1"
|
||||
done
|
||||
echo "Starting SerenityOS, Commandline: ${SERENITY_KERNEL_CMDLINE}"
|
||||
# ./run: qemu with serenity with custom commandline
|
||||
|
|
Loading…
Reference in a new issue