Permalink
Browse files

Revert "Fix IFS backup bug."

This reverts commit 05bb6d4.

Changing the $IFS causes issues on some systems:
"Yesterday I updated sdkman to 5.3.0+159, and now I can not login to
OS (ubuntu 16.10)"
  • Loading branch information...
1 parent 4e6ea2a commit a028796c89cbfaaa54adb14c09fa19dc8e77c1f5 Thomas Rasmussen committed with marc0der Dec 28, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/bash/sdkman-init.sh
@@ -106,9 +106,10 @@ else
fi
# Set the candidate array
+OLD_IFS="$IFS"
IFS=","
SDKMAN_CANDIDATES=(${SDKMAN_CANDIDATES_CSV})
-unset IFS
+IFS="$OLD_IFS"
# determine if up to date
SDKMAN_VERSION_FILE="${SDKMAN_DIR}/var/version"

0 comments on commit a028796

Please sign in to comment.