Final fix for cheat

This commit is contained in:
VirtuBox
2019-08-29 20:18:27 +02:00
parent cf89d43e1c
commit ebc05a7a64

View File

@@ -459,8 +459,8 @@ class WOStackController(CementBaseController):
'/var/lib/wo/tmp/anemometer.tar.gz', '/var/lib/wo/tmp/anemometer.tar.gz',
'Anemometer']] 'Anemometer']]
if pargs.cheat: if pargs.cheat:
if (not os.path.isfile('/usr/local/bin/cht.sh') and if ((not os.path.isfile('/usr/local/bin/cht.sh')) and
not os.path.isfile('/usr/bin/cht.sh')): (not os.path.isfile('/usr/bin/cht.sh'))):
Log.debug(self, "Setting packages variable for cht.sh") Log.debug(self, "Setting packages variable for cht.sh")
WOShellExec.cmd_exec( WOShellExec.cmd_exec(
self, "/usr/bin/curl https://cht.sh/:cht.sh " self, "/usr/bin/curl https://cht.sh/:cht.sh "