Merge pull request #207 from wh201906/wh201906_locale

Force locale settings into POSIX

Closes #208
This commit is contained in:
Drew Bonasera 2021-08-16 05:06:41 -04:00 committed by GitHub
commit 43f1a885cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -221,6 +221,14 @@ if (( EUID != 0 )); then
exit 3 exit 3
fi fi
# set locale to POSIX(English) temporarily
# these locale settings only affect the script and its sub processes
export LANGUAGE=POSIX
export LC_ALL=POSIX
export LANG=POSIX
# check selected compression tool is supported and installed # check selected compression tool is supported and installed
if [[ -n $ziptool ]]; then if [[ -n $ziptool ]]; then
if [[ ! " ${ZIPTOOLS[@]} " =~ $ziptool ]]; then if [[ ! " ${ZIPTOOLS[@]} " =~ $ziptool ]]; then