Final fix for cheat
This commit is contained in:
@@ -459,14 +459,14 @@ 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 "
|
||||||
"| sudo tee /usr/local/bin/cht.sh")
|
"| sudo tee /usr/local/bin/cht.sh")
|
||||||
WOShellExec(self, "/usr/bin/curl "
|
WOShellExec(self, "/usr/bin/curl "
|
||||||
"https://cheat.sh/:bash_completion |"
|
"https://cheat.sh/:bash_completion | "
|
||||||
"sudo tee /etc/bash_completion.d/cht.sh")
|
"sudo tee /etc/bash_completion.d/cht.sh")
|
||||||
else:
|
else:
|
||||||
Log.debug(self, "cheat.sh is already installed")
|
Log.debug(self, "cheat.sh is already installed")
|
||||||
|
|||||||
Reference in New Issue
Block a user