mirror of https://gitlab.com/pamhyr/pamhyr2
Scripts: Fix return value.
parent
973e6c8080
commit
0d547cc469
|
|
@ -31,4 +31,4 @@ class ScriptHello(AScript):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
logger.info("Hello from Pamhyr2 script !")
|
logger.info("Hello from Pamhyr2 script !")
|
||||||
return True
|
return 0
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ def main():
|
||||||
|
|
||||||
application = scripts[script](app, conf, sys.argv)
|
application = scripts[script](app, conf, sys.argv)
|
||||||
ret = application.run()
|
ret = application.run()
|
||||||
if not ret:
|
if ret != 0:
|
||||||
application.usage()
|
application.usage()
|
||||||
else:
|
else:
|
||||||
# No args, run Pamhyr2 interface
|
# No args, run Pamhyr2 interface
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue