File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,12 +8,12 @@ SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
88FIXCHROME_SOURCE=" $SCRIPT_DIR /fixchrome"
99FIXCHROME_DEST=" /usr/local/bin/fixchrome"
1010APT_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
1313echo " 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
1919sed -i " s/LANGUAGE_CODE=\"\$ {1:-[^}]*}\" /LANGUAGE_CODE=\"\$ {1:-$LANGUAGE_CODE }\" /" " $FIXCHROME_DEST "
You can’t perform that action at this time.
0 commit comments