pivotal / workstation-setup

Scripts to automatically set up a machine for development the "Tanzu Labs" way
https://github.com/pivotal/workstation-setup
MIT License
325 stars 240 forks source link

setup.sh fails installing bash-it #248

Closed jobster closed 5 years ago

jobster commented 5 years ago

When we run the setup script (exact command is ./setup.sh java8 node docker), it fails with the following error:

./scripts/common/configuration-bash.sh: line 16: bash-it: command not found

We tried running source ~/.bash_profile from the terminal directly after the script failed. We were then able to successfully run bash-it commands. However, when we re-ran the script within the shell that successfully ran bash-it, it still failed on the same line.

The only way we were able to continue with the setup.sh script was to run the remaining commands in configuration-bash.sh manually and then comment out the line in setup.sh that sources configuration-bash.sh.

nertzy commented 5 years ago

I've been able to reproduce this.

skmichaelson commented 5 years ago

I also reproduced this on Mojave.

The script you're referring to removes bash-it and re-installs it. That's why re-running the script within the shell that already ran bash-it fails again.

brjennin commented 5 years ago

I'm able to reproduce this on a new machine trying to get a dev setup on my team

kayleema commented 5 years ago

Proposed a fix with : https://github.com/pivotal/workstation-setup/pull/250

professor commented 5 years ago

I tried the fix and we have a new error...

/Users/tsedano/.bash_it/bash_it.sh: line 24: /bin/bash/lib/composure.bash: Not a directory
kayleema commented 5 years ago

I think a way around the problem is to add export BASH_IT="$HOME/.bash_it" before running bash_it.sh but I'm not sure if that is the best solution.