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:
parent
835762b289
commit
807b3e3394
@ -633,7 +633,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="${UPSTREAM_REPOSITORY_URL#https://github.com/}"
|
||||
UPSTREAM_REPOSITORY="${UPSTREAM_REPOSITORY%.git}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user