Bash script can't execute Go command
<p>I'm trying to write a bash script to automatically run a go get/install in different directories. The relevant part is here: </p>

<pre><code>( cd ../web ; go get )
( cd ../web ; go install )
( cd ../services ; go get )
( cd ../services ; go install )
</code></pre>

<p>When I execute the script, I get this though: </p>

<ul>
<li>cd ../web                                                                                                                                                                                 </li>
<li>go get<br>
./staging.sh: line 43: go: command not found                                                                                                                                                </li>
<li>cd ../web                                                                                                                                                                                 </li>
<li>go install<br>
./staging.sh: line 44: go: command not found                                                                                                                                                </li>
<li>cd ../services                                                                                                                                                                            </li>
<li>go get<br>
./staging.sh: line 45: go: command not found                                                                                                                                                </li>
<li>cd ../services                                                                                                                                                                            </li>
<li>go install<br>
./staging.sh: line 46: go: command not found    </li>
</ul>

<p>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?</p>