From ebc05a7a64771e7cd145bdcb46e630ad5b44e206 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Thu, 29 Aug 2019 20:18:27 +0200 Subject: [PATCH] Final fix for cheat --- wo/cli/plugins/stack.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wo/cli/plugins/stack.py b/wo/cli/plugins/stack.py index 726bc92..de05852 100644 --- a/wo/cli/plugins/stack.py +++ b/wo/cli/plugins/stack.py @@ -459,14 +459,14 @@ class WOStackController(CementBaseController): '/var/lib/wo/tmp/anemometer.tar.gz', 'Anemometer']] if pargs.cheat: - if (not os.path.isfile('/usr/local/bin/cht.sh') and - not os.path.isfile('/usr/bin/cht.sh')): + if ((not os.path.isfile('/usr/local/bin/cht.sh')) and + (not os.path.isfile('/usr/bin/cht.sh'))): Log.debug(self, "Setting packages variable for cht.sh") WOShellExec.cmd_exec( self, "/usr/bin/curl https://cht.sh/:cht.sh " "| sudo tee /usr/local/bin/cht.sh") WOShellExec(self, "/usr/bin/curl " - "https://cheat.sh/:bash_completion |" + "https://cheat.sh/:bash_completion | " "sudo tee /etc/bash_completion.d/cht.sh") else: Log.debug(self, "cheat.sh is already installed")