Fixing locale error by defaulting to en

This commit is contained in:
Alex Epstein 2017-11-25 12:32:37 -05:00
parent 98c6210d06
commit 47e91be373
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ currentVersion="1.20.0" #This version variable should not have a v but should co
LANG="${LANG:-en}"
locale=$(echo $LANG | cut -c1-2)
configuredClient=""
if [[ $(echo $locale | grep -Eo "[a-z A-Z]*" | wc -c) != 3 ]];then locale="en";fi
## This function determines which http get tool the system has installed and returns an error if there isnt one
getConfiguredClient()