title: Chaining bash scripts on gcloud shell with gsutil
body: <p>I built a series of bash scripts to run BigQuery jobs for a data pipeline. These scripts are saved in a google cloud storage bucket. I pipe them to sh using this:</p>
  
  <pre><code>gsutil cat gs://[bucket]/[filename] | sh
  </code></pre>
  
  <p>Basically there is no problem if I run this from command line, but once I try running this command from within a bash script, I keep getting file not found errors? </p>
  
  <p>It doesn't seem like a PATH issue (I may be mistaken) as calling $PATH from within the script shows where gsutil is located.</p>
  
  <p>Is this a permissions issue?</p>
  
  <p>I'm running this from within google cloud console shell in my browser. Any help is appreciated.</p>