Update Library/Homebrew/cmd/update.sh

https://github.com/Homebrew/brew/pull/16289#discussion_r1448765696

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
sazriel26 2024-01-11 14:17:29 +02:00 committed by Sharon Azriel
parent 835762b289
commit 807b3e3394

View File

@ -633,7 +633,7 @@ EOS
# HOMEBREW_UPDATE_FORCE and HOMEBREW_UPDATE_AUTO aren't modified here so ignore subshell warning. # HOMEBREW_UPDATE_FORCE and HOMEBREW_UPDATE_AUTO aren't modified here so ignore subshell warning.
# shellcheck disable=SC2030 # shellcheck disable=SC2030
if [[ "${UPSTREAM_REPOSITORY_URL}" = "https://github.com/"* ]] if [[ "${UPSTREAM_REPOSITORY_URL}" == "https://github.com/"* ]]
then then
UPSTREAM_REPOSITORY="${UPSTREAM_REPOSITORY_URL#https://github.com/}" UPSTREAM_REPOSITORY="${UPSTREAM_REPOSITORY_URL#https://github.com/}"
UPSTREAM_REPOSITORY="${UPSTREAM_REPOSITORY%.git}" UPSTREAM_REPOSITORY="${UPSTREAM_REPOSITORY%.git}"