mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
qb: Fix --enable-* options for zsh.
This commit is contained in:
parent
94aa2cd08a
commit
21ae4a29a1
@ -50,9 +50,11 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
opt_exists() # $opt is returned if exists in OPTS
|
opt_exists() # $opt is returned if exists in OPTS
|
||||||
{ opt=$(echo "$1" | tr '[:lower:]' '[:upper:]')
|
{ opt="$(echo "$1" | tr '[:lower:]' '[:upper:]')"
|
||||||
for OPT in $OPTS; do [ "$opt" = "$OPT" ] && return; done
|
err="$2"
|
||||||
echo "Unknown option $2"; exit 1
|
eval "set -- $OPTS"
|
||||||
|
for OPT do [ "$opt" = "$OPT" ] && return; done
|
||||||
|
echo "Unknown option $err"; exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
parse_input() # Parse stuff :V
|
parse_input() # Parse stuff :V
|
||||||
|
Loading…
x
Reference in New Issue
Block a user