From 02a8de72d655521e350f3f4ed91137f76093c97d Mon Sep 17 00:00:00 2001 From: Sharon Azriel <150116802+sazriel26@users.noreply.github.com> Date: Sun, 7 Jan 2024 14:37:57 +0200 Subject: [PATCH] Fix brew style on update.sh --- Library/Homebrew/cmd/update.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/update.sh b/Library/Homebrew/cmd/update.sh index fd32e8be59..ea4163acf7 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -631,7 +631,7 @@ EOS # HOMEBREW_UPDATE_FORCE and HOMEBREW_UPDATE_AUTO aren't modified here so ignore subshell warning. # shellcheck disable=SC2030 - if [[ "${UPSTREAM_REPOSITORY_URL}" =~ https://(([^:@]+)(:([^@]+))?@)?github.com/(.*)$ ]]; \ + if [[ "${UPSTREAM_REPOSITORY_URL}" =~ https://(([^:@]+)(:([^@]+))?@)?github.com/(.*)$ ]] then UPSTREAM_REPOSITORY="${BASH_REMATCH[5]%.git}" # HOMEBREW_GITHUB_API_TOKEN is optionally defined in the user environment.