From 113e037646a7bded95a7aba4c6f5a56a866435e7 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 17 Aug 2011 17:53:37 -0500 Subject: [PATCH] Move the nullglob declaration further up so a '*' shim isn't created when no Ruby versions are present. Fixes #45. --- libexec/rbenv-rehash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/rbenv-rehash b/libexec/rbenv-rehash index e1078fc8..13a8d6f4 100755 --- a/libexec/rbenv-rehash +++ b/libexec/rbenv-rehash @@ -59,10 +59,10 @@ cd "$SHIM_PATH" # Create the prototype shim, then make shims for all known binaries. create_prototype_shim +shopt -s nullglob make_shims ../versions/*/bin/* # Find and run any plugins that might want to make shims too. -shopt -s nullglob RBENV_REHASH_PLUGINS=(/etc/rbenv.d/rehash/*.bash ${HOME}/.rbenv/rbenv.d/rehash/*.bash) shopt -u nullglob