Deal with unusual IFS settings in the shell scripts for linux standalone and OSX app.
Thanks, Yaroslav Halchenko
This commit is contained in:
parent
3627f03996
commit
00c5f04f20
5 changed files with 30 additions and 0 deletions
|
@ -4,6 +4,9 @@
|
|||
|
||||
set -e
|
||||
|
||||
orig_IFS="${IFS}"
|
||||
unset IFS
|
||||
|
||||
os="$(uname -o 2>/dev/null || true)"
|
||||
base="$(dirname "$0")"
|
||||
|
||||
|
@ -238,6 +241,11 @@ else
|
|||
cmd=sh
|
||||
fi
|
||||
|
||||
if [ -n "${orig_IFS}" ]; then
|
||||
IFS="${orig_IFS}"
|
||||
export IFS
|
||||
fi
|
||||
|
||||
if [ -z "$tbase" ]; then
|
||||
if [ "$useproot" ]; then
|
||||
exec proot "$cmd" "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue