summaryrefslogtreecommitdiff
path: root/www/lang
diff options
context:
space:
mode:
Diffstat (limited to 'www/lang')
-rwxr-xr-xwww/lang/checklang.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/lang/checklang.py b/www/lang/checklang.py
index 3ae37fa5..307f51df 100755
--- a/www/lang/checklang.py
+++ b/www/lang/checklang.py
@@ -15,6 +15,7 @@ globFile=""
def usage():
print((
'Usage: '+sys.argv[0]+'\n'
+ ' called without arguments runs a check without any modifications\n'
' -h|--help: this help\n'
' -f|file <fname>: only processes that file\n'
' -b|--beautify: beautifies the json file\n'
@@ -62,7 +63,7 @@ def compare(fname):
if len(diffOrig)==0 and len (diffNew)==0:
status = "GOOD"
globGood+=1
- if globBeautify and globFile == fname or globFile == "":
+ if globBeautify and (globFile == fname or globFile == ""):
beaut="YES"
else:
status = "ERROR"