From: Oleg Broytman Date: Tue, 20 Aug 2024 12:55:46 +0000 (+0300) Subject: Style(update-remotes): Fix 3-spaces indents -> 4-spaces X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=ac3cd4ea952c15074f1c3d8424a2e2ec41db7afc;p=git-scripts.git Style(update-remotes): Fix 3-spaces indents -> 4-spaces --- diff --git a/update-remotes b/update-remotes index 02ac77a..7d8f0c2 100755 --- a/update-remotes +++ b/update-remotes @@ -6,16 +6,16 @@ origin="`git config --get --path remote.origin.url`" || : branches="master ${1:+$@}" if [ -n "$origin" ]; then - if [ -n "$current" ]; then - echo "Config error (both origin and current)" >&2 - exit 1 - else - cd "$origin" - exec ./update-remotes "$@" - fi + if [ -n "$current" ]; then + echo "Config error (both origin and current)" >&2 + exit 1 + else + cd "$origin" + exec ./update-remotes "$@" + fi elif [ -z "$current" ]; then - echo "Wrong directory error (neither origin nor current)" >&2 - exit 1 + echo "Wrong directory error (neither origin nor current)" >&2 + exit 1 fi git fetch current @@ -24,7 +24,7 @@ git set-date web="`git config --get --path remote.web.url`" if [ -n "$web" ]; then - git push --force web $branches + git push --force web $branches fi cd "$current"