move out of logic loop to run properly

This commit is contained in:
ryan.kuba
2023-10-11 19:50:12 -07:00
parent 915c515cd7
commit b98fdefc14
@@ -736,8 +736,13 @@ elif [[ "${LSIO_BASE}" == "arch" ]] && [[ ! -f /usr/share/fonts/noto-cjk/NotoSan
echo "Generating Locale for ${LOCALE}"
localedef -i ${LOCALE} -f UTF-8 ${LOCALE}.UTF-8
done
else
echo "**** International Fonts/Locales installed skipping ****"
fi
# Add Firefox Langpacks
if which firefox; then
if which firefox && [ ! -f /langlock ]; then
echo "Installing firefox langpacks"
FIREFOX_VERSION=$(curl -sI https://download.mozilla.org/?product=firefox-latest | awk -F '(releases/|/win32)' '/Location/ {print $2}')
RELEASE_URL="https://releases.mozilla.org/pub/firefox/releases/${FIREFOX_VERSION}/win64/xpi/"
LANGS=$(curl -Ls ${RELEASE_URL} | awk -F '(xpi">|</a>)' '/href.*xpi/ {print $2}' | tr '\n' ' ')
@@ -751,6 +756,5 @@ elif [[ "${LSIO_BASE}" == "arch" ]] && [[ ! -f /usr/share/fonts/noto-cjk/NotoSan
${RELEASE_URL}${LANG}
done
fi
else
echo "**** International Fonts/Locales installed skipping ****"
fi
touch /langlock