diff options
| author | Martin Afanasjew | 2016-08-07 12:51:46 +0200 |
|---|---|---|
| committer | Martin Afanasjew | 2016-08-08 16:00:12 +0200 |
| commit | 3d862ef5e29e8f57649b596eeb70a57ce10bbcd2 (patch) | |
| tree | 5b7425913c952c51e6e1902a42a08d05668ff733 | |
| parent | 1e9328c6e16eafcb6565d8191265f0256ab2a932 (diff) | |
| download | brew-3d862ef5e29e8f57649b596eeb70a57ce10bbcd2.tar.bz2 | |
cmd/vendor-install.sh: fix style inconsistencies
| -rw-r--r-- | Library/Homebrew/cmd/vendor-install.sh | 22 | ||||
| -rwxr-xr-x | Library/Homebrew/shims/scm/git | 2 |
2 files changed, 12 insertions, 12 deletions
diff --git a/Library/Homebrew/cmd/vendor-install.sh b/Library/Homebrew/cmd/vendor-install.sh index e3e082182..90a339382 100644 --- a/Library/Homebrew/cmd/vendor-install.sh +++ b/Library/Homebrew/cmd/vendor-install.sh @@ -30,10 +30,10 @@ fetch() { local temporary_path curl_args=( - --fail \ - --remote-time \ - --location \ - --user-agent "$HOMEBREW_USER_AGENT_CURL" \ + --fail + --remote-time + --location + --user-agent "$HOMEBREW_USER_AGENT_CURL" ) if [[ -n "$HOMEBREW_QUIET" ]] @@ -44,7 +44,7 @@ fetch() { curl_args+=(--progress-bar) fi - temporary_path="${CACHED_LOCATION}.incomplete" + temporary_path="$CACHED_LOCATION.incomplete" mkdir -p "$HOMEBREW_CACHE" [[ -n "$HOMEBREW_QUIET" ]] || echo "==> Downloading $VENDOR_URL" @@ -67,7 +67,7 @@ fetch() { if [[ ! -f "$temporary_path" ]] then - odie "Download failed: ${VENDOR_URL}" + odie "Download failed: $VENDOR_URL" fi trap '' SIGINT @@ -159,10 +159,10 @@ homebrew-vendor-install() { do case "$option" in -\?|-h|--help|--usage) brew help vendor-install; exit $? ;; - --verbose) HOMEBREW_VERBOSE=1 ;; - --quiet) HOMEBREW_QUIET=1 ;; - --debug) HOMEBREW_DEBUG=1 ;; - --*) ;; + --verbose) HOMEBREW_VERBOSE=1 ;; + --quiet) HOMEBREW_QUIET=1 ;; + --debug) HOMEBREW_DEBUG=1 ;; + --*) ;; -*) [[ "$option" = *v* ]] && HOMEBREW_VERBOSE=1 [[ "$option" = *q* ]] && HOMEBREW_QUIET=1 @@ -188,7 +188,7 @@ homebrew-vendor-install() { odie "Cannot find a vendored version of $VENDOR_NAME." fi - VENDOR_VERSION="$(<"$VENDOR_DIR/portable-${VENDOR_NAME}-version")" + VENDOR_VERSION="$(<"$VENDOR_DIR/portable-$VENDOR_NAME-version")" CACHED_LOCATION="$HOMEBREW_CACHE/$(basename "$VENDOR_URL")" lock "vendor-install-$VENDOR_NAME" diff --git a/Library/Homebrew/shims/scm/git b/Library/Homebrew/shims/scm/git index 10950ef07..2a95b0181 100755 --- a/Library/Homebrew/shims/scm/git +++ b/Library/Homebrew/shims/scm/git @@ -42,7 +42,7 @@ executable() { } lowercase() { - echo "$1" | tr '[:upper:]' '[:lower:]' + echo "$1" | tr "[:upper:]" "[:lower:]" } safe_exec() { |
