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
base="$(dirname "$0")"
if [ ! -d "$base" ]; then
@ -85,6 +88,11 @@ export GIT_ANNEX_DIR
GIT_ANNEX_STANDLONE_ENV="PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR"
export GIT_ANNEX_STANDLONE_ENV
if [ -n "${orig_IFS}" ]; then
IFS="${orig_IFS}"
export IFS
fi
if [ "$1" ]; then
cmd="$1"
shift 1