mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 23:58:50 +01:00
Make Instant Play actually work with buildroot's ash
This commit is contained in:
parent
ea2c4a1941
commit
903bc28e64
@ -3,15 +3,15 @@
|
||||
# Write quick load file args
|
||||
QUICK_LOAD_FILE=/root/quick_load_cmd
|
||||
|
||||
printf "" > $QUICK_LOAD_FILE
|
||||
|
||||
whitespace="[[:space:]]"
|
||||
echo -n "" > $QUICK_LOAD_FILE
|
||||
for i in "$@"; do
|
||||
if [[ "$i" != $whitespace && "$i" != "SDL_NOMOUSE=1" ]]
|
||||
then
|
||||
i=\""$i"\"
|
||||
if $(echo "$i" | egrep -q '[[:space:]]'); then
|
||||
|
||||
# Add quotes around arguments containing spaces
|
||||
echo -n "\"$i\" " >> ${QUICK_LOAD_FILE}
|
||||
else
|
||||
echo -n "$i " >> ${QUICK_LOAD_FILE}
|
||||
fi
|
||||
printf "%s" "$i " >> $QUICK_LOAD_FILE
|
||||
done
|
||||
printf "\n" >> $QUICK_LOAD_FILE
|
||||
echo "" >> ${QUICK_LOAD_FILE}
|
||||
exit 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user