From 807b3e33949ab2ec3cae2e22c93d4ded99fb7cf1 Mon Sep 17 00:00:00 2001 From: sazriel26 <150116802+sazriel26@users.noreply.github.com> Date: Thu, 11 Jan 2024 14:17:29 +0200 Subject: [PATCH] Update Library/Homebrew/cmd/update.sh https://github.com/Homebrew/brew/pull/16289#discussion_r1448765696 Co-authored-by: Mike McQuaid --- 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 18c97239a6..22dc5c4b1c 100644 --- a/Library/Homebrew/cmd/update.sh +++ b/Library/Homebrew/cmd/update.sh @@ -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}"