From a083d77f1024e8fc49dd17195b935030c6ca97bb Mon Sep 17 00:00:00 2001 From: neo Date: Tue, 17 Oct 2023 17:58:28 +0800 Subject: [PATCH] feat: services --- install.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index 4b325a7..b7bbcd2 100755 --- a/install.sh +++ b/install.sh @@ -211,7 +211,7 @@ HOMEBREW_BREW_DEFAULT_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git" HOMEBREW_CORE_DEFAULT_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git" HOMEBREW_CASK_DEFAULT_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-cask.git" -HOMEBREW_SERVICES_DEFAULT_GIT_REMOTE="https://gitee.com/imirror/homebrew-services.git" +HOMEBREW_SERVICES_DEFAULT_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-services.git" HOMEBREW_API_DEFAULT_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api" HOMEBREW_BOTTLE_DEFAULT_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/bottles" @@ -1184,13 +1184,13 @@ case "${SHELL}" in esac # clean existed env -if [[ -e "${shell_profile}" ]]; then +if [[ -e "${shell_rcfile}" ]]; then if [[ -z "${HOMEBREW_ON_LINUX-}" ]]; then #Mac - sed -i "" "/brew\.idayer\.com/d" ${shell_profile} + sed -i "" "/brew\.idayer\.com/d" ${shell_rcfile} else #Linux - sed -i "/brew\.idayer\.com/d" ${shell_profile} + sed -i "/brew\.idayer\.com/d" ${shell_rcfile} fi fi @@ -1201,24 +1201,24 @@ echo "自动配置环境变量" # shellcheck disable=SC2230 if [[ "$(which brew)" != "${HOMEBREW_PREFIX}/bin/brew" ]] then - cat >> ${shell_profile} <> ${shell_rcfile} <> ${shell_profile} <> ${shell_rcfile} <