Fix quoting in rbenv function
This commit is contained in:
parent
76929320c8
commit
1ba2ce0cb6
@ -71,13 +71,13 @@ commands=(`rbenv commands --sh`)
|
|||||||
IFS="|"
|
IFS="|"
|
||||||
cat <<EOS
|
cat <<EOS
|
||||||
function rbenv () {
|
function rbenv () {
|
||||||
command=\$1;
|
command="\$1";
|
||||||
shift;
|
shift;
|
||||||
case \$command in
|
case "\$command" in
|
||||||
${commands[*]})
|
${commands[*]})
|
||||||
eval \`rbenv sh-\$command \$@\`;;
|
eval \`rbenv "sh-\$command" "\$@"\`;;
|
||||||
*)
|
*)
|
||||||
command rbenv \$command \$@;;
|
command rbenv "\$command" "\$@";;
|
||||||
esac;
|
esac;
|
||||||
};
|
};
|
||||||
EOS
|
EOS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user