summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2017-10-06 22:31:33 +0200
committerKali Kaneko <kali@leap.se>2017-10-06 22:31:33 +0200
commit6cf1d033d2821f4d29274bbb284356bcc6146154 (patch)
treeddb0bc6e20d880ce3ceebc76d40cd64977c4fb0f
parentfb9b4e500a75f505d1861eea95ca1cb95b8a4653 (diff)
[pkg] prevent bootstrap script from hanging
-rwxr-xr-xpkg/tools/bitmask-bootstrap.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/pkg/tools/bitmask-bootstrap.sh b/pkg/tools/bitmask-bootstrap.sh
index a2cb45fe..6a4578a7 100755
--- a/pkg/tools/bitmask-bootstrap.sh
+++ b/pkg/tools/bitmask-bootstrap.sh
@@ -22,15 +22,12 @@ function add_pew_to_environment()
function apt_install()
{
sudo apt install $APT_DEPS
+ sudo pip install pew
}
function init_pew()
{
- which pew || pip install pew
- which pew || add_pew_to_environment
- PATH=~/.local/bin:$PATH
- # this hangs when creating for the first time
- pew ls | grep bitmask || echo '[+] bitmask boostrap: creating new bitmask virtualenv. Type "exit" in the shell to continue!' && pew new bitmask
+ pew ls | grep bitmask || echo '[+] creating new bitmask virtualenv...' && pew new -d bitmask
}
function clone_repo()