setup.sh fails installing bash-it
Closed this issue · 6 comments
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
.
I've been able to reproduce this.
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.
I'm able to reproduce this on a new machine trying to get a dev setup on my team
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
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.