mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 05:43:53 -05:00
rbenv-whence requires a command argument
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user