1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-26 01:07:11 -07:00

detect empty LANG

This commit is contained in:
Connor Olding 2019-06-03 09:27:01 -07:00
parent c867b85f95
commit ad482288fa

View File

@ -49,7 +49,11 @@ unset LD_LIBRARY_PATH
if [ "$LANG" != "en_US.UTF-8" ] && [ "$LANG" != "en_CA.UTF-8" ]; then
if [ -z "$MSYSTEM" ] || [ "$LANG" != "C.UTF-8" ]; then
echo -E "Warning: LANG is $LANG" >&2
if [ -z "$LANG" ]; then
echo -E "Warning: LANG is empty!" >&2
else
echo -E "Warning: LANG is $LANG" >&2
fi
fi
fi