Skip to content

Commit a7d08dc

Browse files
committed
changes to DEBUG statements and LANG #17
1 parent 66099d9 commit a7d08dc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

check-markit

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/bash
2+
# check-markit 3.66.212 2018-08-09_16:08:45_CDT https://github.com/BradleyA/markit uadmin three-rpi3b.cptx86.com 3.65
3+
# changes to DEBUG statements and LANG #17
24
# check-markit 3.64.210 2018-08-09_15:48:42_CDT https://github.com/BradleyA/markit uadmin three-rpi3b.cptx86.com 3.63-1-g7764ba9
35
# add DEBUG lines and LANG check asking for LANG help #17
46
# check-markit 3.50.193 2018-08-05_21:08:54_CDT https://github.com/BradleyA/markit uadmin three-rpi3b.cptx86.com 3.49
57
# needs more testing with GitLab close #31
6-
# check-markit 3.49.192 2018-08-05_20:10:13_CDT https://github.com/BradleyA/markit uadmin three-rpi3b.cptx86.com 3.48-1-g36ae19b
7-
# check-markit work on Gitlab #31 , need to continue testing
88
###
99
# set -x
1010
# set -v
@@ -33,9 +33,8 @@ echo -e "\nOPTIONS\n -f, --file\n path and file on system '<path>/<file_n
3333
echo -e "\nDOCUMENTATION\n https://github.com/BradleyA/markit"
3434
echo -e "\nEXAMPLES\n check-markit -f testfiles/sample.c\n\n Check file named sample.c release in relative path testfile/ with\n repository release."
3535
echo -e "\n check-markit markit\n\n Check file named markit release with repository release.\n"
36-
LANG_TEMP=`echo ${LANG} | sed 's/\..*$//'`
37-
if ! [ "${LANG_TEMP}" == "en_US" ] ; then
38-
echo -e "${NORMAL}${0} ${LINENO} [${BOLD}WARNING${NORMAL}]: Your language, ${LANG_TEMP}, is not supported.\n\tWould you like to help?\n" 1>&2
36+
if ! [ "${LANG}" == "en_US.UTF-8" ] ; then
37+
echo -e "${NORMAL}${0} ${LINENO} [${BOLD}WARNING${NORMAL}]: Your language, ${LANG}, is not supported.\n\tWould you like to help?\n" 1>&2
3938
fi
4039
}
4140
if [ "$1" == "--help" ] || [ "$1" == "-help" ] || [ "$1" == "help" ] || [ "$1" == "-h" ] || [ "$1" == "h" ] || [ "$1" == "-?" ] || [ "$1" == "?" ] ; then

0 commit comments

Comments
 (0)