Skip to content

Commit bdb06c4

Browse files
committed
fix: improve environment variable handling and config consistency
- Fix variable override to prefer CLIENT_PLATFORM and CLIENT_ARCH instead of SSH_CLIENT_OS and SSH_CLIENT_ARCH - Move RELEASE_URL definition after VERSION for consistency Signed-off-by: appleboy <[email protected]>
1 parent 583dabc commit bdb06c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ YELLOW='\033[1;33m'
1010
ORANGE='\033[38;2;255;140;0m'
1111
NC='\033[0m' # No Color
1212

13-
RELEASE_URL="${RELEASE_URL:-https://github.com/appleboy/CodeGPT/releases/download}"
1413
VERSION="${VERSION:-0.16.1}"
14+
RELEASE_URL="${RELEASE_URL:-https://github.com/appleboy/CodeGPT/releases/download}"
1515
INSTALL_DIR="${INSTALL_DIR:-$HOME/.codegpt/bin}"
1616
CURL_INSECURE="${CURL_INSECURE:-false}"
17-
CLIENT_PLATFORM="${SSH_CLIENT_OS:-$(uname -s | tr '[:upper:]' '[:lower:]')}"
18-
CLIENT_ARCH="${SSH_CLIENT_ARCH:-$(uname -m)}"
17+
CLIENT_PLATFORM="${CLIENT_PLATFORM:-$(uname -s | tr '[:upper:]' '[:lower:]')}"
18+
CLIENT_ARCH="${CLIENT_ARCH:-$(uname -m)}"
1919

2020
function print_message() {
2121
local level=$1

0 commit comments

Comments
 (0)