I'm trying to write a bash script to automatically run a go get/install in different directories. The relevant part is here:
( cd ../web ; go get )
( cd ../web ; go install )
( cd ../services ; go get )
( cd ../services ; go install )
When I execute the script, I get this though:
- cd ../web
- go get
./staging.sh: line 43: go: command not found - cd ../web
- go install
./staging.sh: line 44: go: command not found - cd ../services
- go get
./staging.sh: line 45: go: command not found - cd ../services
- go install
./staging.sh: line 46: go: command not found
If I just go to the directories manually and run the commands, they work fine. Why aren't they executing when running from the script?