mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
qb: read without -r will mangle backslashes.
This commit is contained in:
parent
94aa2cd08a
commit
75e6ad53b6
@ -29,7 +29,7 @@ EOF
|
|||||||
echo ""
|
echo ""
|
||||||
echo "Custom options:"
|
echo "Custom options:"
|
||||||
|
|
||||||
while IFS='=#' read VAR VAL COMMENT; do
|
while IFS='=#' read -r VAR VAL COMMENT; do
|
||||||
VAR=$(echo "${VAR##HAVE_}" | tr '[:upper:]' '[:lower:]')
|
VAR=$(echo "${VAR##HAVE_}" | tr '[:upper:]' '[:lower:]')
|
||||||
case "$VAR" in
|
case "$VAR" in
|
||||||
'c89_'*) continue;;
|
'c89_'*) continue;;
|
||||||
@ -56,7 +56,7 @@ opt_exists() # $opt is returned if exists in OPTS
|
|||||||
}
|
}
|
||||||
|
|
||||||
parse_input() # Parse stuff :V
|
parse_input() # Parse stuff :V
|
||||||
{ OPTS=; while IFS='=' read VAR dummy; do OPTS="$OPTS ${VAR##HAVE_}"; done < 'qb/config.params.sh'
|
{ OPTS=; while IFS='=' read -r VAR _; do OPTS="$OPTS ${VAR##HAVE_}"; done < 'qb/config.params.sh'
|
||||||
#OPTS contains all available options in config.params.sh - used to speedup
|
#OPTS contains all available options in config.params.sh - used to speedup
|
||||||
#things in opt_exists()
|
#things in opt_exists()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user