diff options
Diffstat (limited to 'test/chk_loc.sh')
-rwxr-xr-x | test/chk_loc.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/chk_loc.sh b/test/chk_loc.sh new file mode 100755 index 0000000..68b82b3 --- /dev/null +++ b/test/chk_loc.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +LOC=`echo $1 | sed 's/-//g'` + +locale -a | sed 's/-//g' | grep -i "${LOC}" 2>&1 > /dev/null + +if [ "$?" = "0" ] +then + echo "yes" +else + echo "no" +fi |