Deal with unusual IFS settings in the shell scripts for linux standalone and OSX app.

Thanks, Yaroslav Halchenko
This commit is contained in:
Joey Hess 2020-07-24 14:46:50 -04:00
parent 3627f03996
commit 00c5f04f20
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
5 changed files with 30 additions and 0 deletions

View file

@ -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" "$@"