mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
rbenv-whence requires a command argument
This commit is contained in:
parent
a62bd23ba2
commit
4668a2e2ed
1 changed files with 5 additions and 0 deletions
|
@ -18,5 +18,10 @@ whence() {
|
||||||
}
|
}
|
||||||
|
|
||||||
RBENV_COMMAND="$1"
|
RBENV_COMMAND="$1"
|
||||||
|
if [ -z "$RBENV_COMMAND" ]; then
|
||||||
|
echo "usage: rbenv whence [--path] COMMAND" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
result="$(whence "$RBENV_COMMAND")"
|
result="$(whence "$RBENV_COMMAND")"
|
||||||
[ -n "$result" ] && echo "$result"
|
[ -n "$result" ] && echo "$result"
|
||||||
|
|
Loading…
Reference in a new issue