diff --git a/package_linter.py b/package_linter.py index 9e3d439..504581e 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1447,7 +1447,7 @@ class Configurations(TestSuite): cmd = 'grep -q -IhEro "location ~ __PATH__" %s' % (app.path + "/conf/" + filename) - if os.system(cmd) != 0: + if os.system(cmd) == 0: yield Info( "When using regexp in the nginx location field (location ~ __PATH__), start the path with ^ (location ~ ^__PATH__)." )