Skip to content

Commit

Permalink
speed up checking hook names during installation, update #2634
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Feb 25, 2014
1 parent ad5e6a8 commit e77ba4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/functions/installer
Expand Up @@ -494,7 +494,7 @@ install_rvm_hooks()
# Source is first level hook (after_use) and target is custom user hook, preserve it
if
[[ -f "$rvm_path/$entry" ]] &&
echo "$entry" | __rvm_grep -E '^hooks/[[:alpha:]]+_[[:alpha:]]+$' >/dev/null &&
__rvm_grep -E '^hooks/[[:alpha:]]+_[[:alpha:]]+$' >/dev/null <<<"$entry" &&
! __rvm_grep "$(basename ${entry})_\*" "$rvm_path/$entry" >/dev/null
then
\mv -f "$rvm_path/$entry" "$rvm_path/${entry}_custom"
Expand Down

0 comments on commit e77ba4d

Please sign in to comment.