Permalink
Browse files

speed up checking hook names during installation, update #2634

  • Loading branch information...
mpapis committed Feb 25, 2014
1 parent ad5e6a8 commit e77ba4d54a1fc5a5c7294977686c8376803062fc
Showing with 1 addition and 1 deletion.
  1. +1 −1 scripts/functions/installer
@@ -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"

0 comments on commit e77ba4d

Please sign in to comment.