From ca0b790e760b251ca2a8687d889e99482a947e85 Mon Sep 17 00:00:00 2001 From: nexustar Date: Fri, 3 Nov 2023 18:05:26 +0800 Subject: [PATCH] improve install.sh and release ci --- .github/workflows/release-tiup.yaml | 5 ----- install.sh | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/release-tiup.yaml b/.github/workflows/release-tiup.yaml index 29c7fabcb2..b082e71cb0 100644 --- a/.github/workflows/release-tiup.yaml +++ b/.github/workflows/release-tiup.yaml @@ -164,11 +164,6 @@ jobs: echo ${{ secrets.TIUP_COMP_KEY_PINGCAP }} | base64 -d > $TIUP_HOME/keys/private.json - # build the latest tiup to use for publish, this is a workaround and should - # be removed after this PR is merged and released - GOOS=linux GOARCH=amd64 make tiup - cp bin/tiup ${TIUP_BIN} - # add a random delay before actually publishing, this can help reduce manifest conflict # when there are multiple jobs running in parallel sleep $[ ( $RANDOM % 10 ) ]s diff --git a/install.sh b/install.sh index 43f2a2e042..bd40111c2e 100755 --- a/install.sh +++ b/install.sh @@ -84,7 +84,7 @@ fi echo "Shell profile: ${bold}$PROFILE${sgr0}" case :$PATH: in - *:$bin_dir:*) : "PATH already contains $bin_dir" ;; + *:$bin_dir:*) echo "PATH already contains $bin_dir" ;; *) printf '\nexport PATH=%s:$PATH\n' "$bin_dir" >> "$PROFILE" echo "$PROFILE has been modified to add tiup to PATH" echo "open a new terminal or ${bold}source ${PROFILE}${sgr0} to use it"