mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
qb: Don't set IFS.
This commit is contained in:
parent
c89ed117b6
commit
6dc32ffe17
@ -40,8 +40,11 @@ EOF
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Custom options:"
|
echo "Custom options:"
|
||||||
|
|
||||||
while IFS='=#' read -r VAR VAL COMMENT; do
|
while read -r VAR COMMENT; do
|
||||||
VAR=$(echo "${VAR##HAVE_}" | tr '[:upper:]' '[:lower:]')
|
TMPVAR="${VAR%=*}"
|
||||||
|
COMMENT="${COMMENT#*#}"
|
||||||
|
VAL="${VAR#*=}"
|
||||||
|
VAR="$(echo "${TMPVAR#HAVE_}" | tr '[:upper:]' '[:lower:]')"
|
||||||
case "$VAR" in
|
case "$VAR" in
|
||||||
'c89_'*) continue;;
|
'c89_'*) continue;;
|
||||||
*)
|
*)
|
||||||
@ -69,9 +72,12 @@ opt_exists() # $opt is returned if exists in OPTS
|
|||||||
}
|
}
|
||||||
|
|
||||||
parse_input() # Parse stuff :V
|
parse_input() # Parse stuff :V
|
||||||
{ OPTS=; while IFS='=' read -r VAR _; do OPTS="$OPTS ${VAR##HAVE_}"; done < 'qb/config.params.sh'
|
{ OPTS=; while read -r VAR _; do
|
||||||
#OPTS contains all available options in config.params.sh - used to speedup
|
TMPVAR="${VAR%=*}"
|
||||||
#things in opt_exists()
|
OPTS="$OPTS ${TMPVAR##HAVE_}"
|
||||||
|
done < 'qb/config.params.sh'
|
||||||
|
#OPTS contains all available options in config.params.sh - used to speedup
|
||||||
|
#things in opt_exists()
|
||||||
|
|
||||||
while [ "$1" ]; do
|
while [ "$1" ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user