summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-12-05 14:12:39 -0500
committerPliable Pixels <pliablepixels@gmail.com>2016-12-05 14:12:39 -0500
commitabb3f1f3517d654050cfeb2161347163bc63455b (patch)
treefaf4ab26025b2f42085fdc1d9d975ddab6faad59
parenteca5c5683f383ab2d3bef3d2f35153803a87491c (diff)
made sure beautify is called only if -b is specified
-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"