Skip to content

Commit 803b55c

Browse files
committed
Update install.sh
1 parent b53758c commit 803b55c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
88
FIXCHROME_SOURCE="$SCRIPT_DIR/fixchrome"
99
FIXCHROME_DEST="/usr/local/bin/fixchrome"
1010
APT_HOOK_PATH="/etc/apt/apt.conf.d/99chrome-locale"
11-
REPO_URL="https://raw.githubusercontent.com/ayclqt/chrome-language-apt/main"
11+
DOWNLOAD_URL="https://github.com/ayclqt/chrome-language-apt/releases/latest/download"
1212

1313
echo "Installing fixchrome with default language: $LANGUAGE_CODE"
1414

1515
# Check if fixchrome exists in current directory, else download it
16-
cp "$(dirname "$0")/fixchrome" "$FIXCHROME_DEST" 2>/dev/null || curl -fsSL "$REPO_URL/fixchrome" -o "$FIXCHROME_DEST" || { echo "Error: Failed to get fixchrome script"; exit 1; }
16+
cp "$(dirname "$0")/fixchrome" "$FIXCHROME_DEST" 2>/dev/null || curl -fsSL "$DOWNLOAD_URL/fixchrome" -o "$FIXCHROME_DEST" || { echo "Error: Failed to get fixchrome script"; exit 1; }
1717

1818
# Replace default language code
1919
sed -i "s/LANGUAGE_CODE=\"\${1:-[^}]*}\"/LANGUAGE_CODE=\"\${1:-$LANGUAGE_CODE}\"/" "$FIXCHROME_DEST"

0 commit comments

Comments
 (0)