Fix brew style on update.sh

This commit is contained in:
Sharon Azriel 2024-01-07 14:37:57 +02:00
parent 07287982f2
commit 02a8de72d6

View File

@ -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.