aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMartin Afanasjew2016-08-07 12:51:12 +0200
committerMartin Afanasjew2016-08-08 16:00:12 +0200
commit1e9328c6e16eafcb6565d8191265f0256ab2a932 (patch)
treee749ac59c25c79a90ce605eb4df2accbcf271816 /Library
parent79c49b36389c2284f29fe8137a1c2acf87aac628 (diff)
downloadbrew-1e9328c6e16eafcb6565d8191265f0256ab2a932.tar.bz2
cmd/update.sh: fix style inconsistencies
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/update.sh30
1 files changed, 15 insertions, 15 deletions
diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh
index 3621cfde8..744642648 100644
--- a/Library/Homebrew/cmd/update.sh
+++ b/Library/Homebrew/cmd/update.sh
@@ -284,19 +284,19 @@ homebrew-update() {
for option in "$@"
do
case "$option" in
- -\?|-h|--help|--usage) brew help update; exit $? ;;
- --verbose) HOMEBREW_VERBOSE=1 ;;
- --debug) HOMEBREW_DEBUG=1;;
- --merge) HOMEBREW_MERGE=1 ;;
+ -\?|-h|--help|--usage) brew help update; exit $? ;;
+ --verbose) HOMEBREW_VERBOSE=1 ;;
+ --debug) HOMEBREW_DEBUG=1 ;;
+ --merge) HOMEBREW_MERGE=1 ;;
--simulate-from-current-branch) HOMEBREW_SIMULATE_FROM_CURRENT_BRANCH=1 ;;
- --preinstall) export HOMEBREW_UPDATE_PREINSTALL=1 ;;
- --*) ;;
+ --preinstall) export HOMEBREW_UPDATE_PREINSTALL=1 ;;
+ --*) ;;
-*)
- [[ "$option" = *v* ]] && HOMEBREW_VERBOSE=1;
- [[ "$option" = *d* ]] && HOMEBREW_DEBUG=1;
+ [[ "$option" = *v* ]] && HOMEBREW_VERBOSE=1
+ [[ "$option" = *d* ]] && HOMEBREW_DEBUG=1
;;
*)
- odie <<-EOS
+ odie <<EOS
This command updates brew itself, and does not take formula names.
Use 'brew upgrade <formula>'.
EOS
@@ -312,7 +312,7 @@ EOS
# check permissions
if [[ "$HOMEBREW_PREFIX" = "/usr/local" && ! -w /usr/local ]]
then
- odie <<-EOS
+ odie <<EOS
/usr/local is not writable. You should change the ownership
and permissions of /usr/local back to your user account:
sudo chown -R \$(whoami) /usr/local
@@ -321,7 +321,7 @@ EOS
if [[ ! -w "$HOMEBREW_REPOSITORY" ]]
then
- odie <<-EOS
+ odie <<EOS
$HOMEBREW_REPOSITORY is not writable. You should change the
ownership and permissions of $HOMEBREW_REPOSITORY back to your
user account:
@@ -387,7 +387,7 @@ EOS
if [[ -n "$HOMEBREW_UPDATE_PREINSTALL" ]]
then
# Skip taps without formulae.
- FORMULAE="$(find "$DIR" -maxdepth 1 \( -name '*.rb' -or -name 'Formula' -or -name 'HomebrewFormula' \) -print -quit)"
+ FORMULAE="$(find "$DIR" -maxdepth 1 \( -name "*.rb" -or -name Formula -or -name HomebrewFormula \) -print -quit)"
[[ -z "$FORMULAE" ]] && exit
fi
@@ -399,7 +399,7 @@ EOS
UPSTREAM_BRANCH_LOCAL_SHA="$(git rev-parse "refs/remotes/origin/$UPSTREAM_BRANCH")"
# Only try to `git fetch` when the upstream branch is at a different SHA
# (so the API does not return 304: unmodified).
- UPSTREAM_SHA_HTTP_CODE="$("$HOMEBREW_CURL" --silent '--max-time' 3 \
+ UPSTREAM_SHA_HTTP_CODE="$("$HOMEBREW_CURL" --silent --max-time 3 \
--output /dev/null --write-out "%{http_code}" \
--user-agent "$HOMEBREW_USER_AGENT_CURL" \
--header "Accept: application/vnd.github.v3.sha" \
@@ -425,7 +425,7 @@ EOS
if ! git fetch --force "${QUIET_ARGS[@]}" origin \
"refs/heads/$UPSTREAM_BRANCH:refs/remotes/origin/$UPSTREAM_BRANCH"
then
- echo "Fetching $DIR failed!" >> "$update_failed_file"
+ echo "Fetching $DIR failed!" >>"$update_failed_file"
fi
fi
) &
@@ -436,7 +436,7 @@ EOS
if [[ -f "$update_failed_file" ]]
then
- onoe < "$update_failed_file"
+ onoe <"$update_failed_file"
rm -f "$update_failed_file"
export HOMEBREW_UPDATE_FAILED="1"
fi