Merge pull request #959 from zenspider/fix-dash-u

Fixed `rbenv init -` output to work w/ no args and bash's `set -u`.
This commit is contained in:
Mislav Marohnić 2017-11-29 15:40:23 +01:00 committed by GitHub
commit eab68688dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,7 +138,7 @@ esac
if [ "$shell" != "fish" ]; then
IFS="|"
cat <<EOS
command="\$1"
command="\${1:-}"
if [ "\$#" -gt 0 ]; then
shift
fi