diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/update.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index 44a6ebdf4..9679c0f8e 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -40,6 +40,7 @@ git_init_if_necessary() { rename_taps_dir_if_necessary() { local tap_dir local tap_dir_basename + local tap_dir_hyphens local user local repo @@ -55,7 +56,8 @@ rename_taps_dir_if_necessary() { mkdir -p "$HOMEBREW_LIBRARY/Taps/$user" mv "$tap_dir" "$HOMEBREW_LIBRARY/Taps/$user/homebrew-$repo" - if [[ ${#${tap_dir_basename//[^\-]}} -gt 1 ]] + tap_dir_hyphens="${tap_dir_basename//[^\-]}" + if [[ ${#tap_dir_hyphens} -gt 1 ]] then echo "Homebrew changed the structure of Taps like <someuser>/<sometap>." >&2 echo "So you may need to rename $HOMEBREW_LIBRARY/Taps/$user/homebrew-$repo manually." >&2 |
