From 41c5ac5a33ec8b67578c972ae884a0e463116d4d Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 3 Aug 2011 04:25:23 +0800 Subject: [PATCH] the initial case has an empty directory, so force rm to avoid errors --- bin/rbenv-rehash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/rbenv-rehash b/bin/rbenv-rehash index f0435238..692cfacc 100755 --- a/bin/rbenv-rehash +++ b/bin/rbenv-rehash @@ -4,7 +4,7 @@ set -e mkdir -p "${HOME}/.rbenv/shims" cd "${HOME}/.rbenv/shims" -rm * +rm -f * for file in ../versions/*/bin/*; do ln -fs ../bin/rbenv-shim "${file##*/}"