Fixed a bug with set_language and fluxion auto.

This commit is contained in:
Matias Barcenas 2017-09-02 20:46:29 -05:00
parent b513f65109
commit a88eec011b
1 changed files with 3 additions and 1 deletions

View File

@ -337,7 +337,9 @@ function set_resolution() { # Windows + Resolution
##################################### < Language > #####################################
function set_language() {
if [ ! "$FLUXIONAuto" ]; then
if [ "$FLUXIONAuto" ]; then
FLUXIONLanguage="en"
else
# Get all languages available.
local languageCodes
readarray -t languageCodes < <(ls -1 language | sed -E 's/\.sh//')