# Run bash script from repo

**URL:** <https://discuss.bitrise.io/t/run-bash-script-from-repo/4532>\
**Category:** Question & Answer\
**Tags:** script\
**Created:** [March 20, 2018, 1:25pm UTC](https://discuss.bitrise.io/t/run-bash-script-from-repo/4532 "2018-03-20T13:25:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anselm.meyn](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@anselm.meyn](https://discuss.bitrise.io/u/anselm.meyn)\
**Post date:** [March 20, 2018, 1:25pm UTC](https://discuss.bitrise.io/t/run-bash-script-from-repo/4532/1 "2018-03-20T13:25:31Z")

</div>

Hi,

I have a bash script in my git repo that I’d like to be able to run from my workflow. I tried adding a script step to run it with bash (after the git clone step),

`bash ./tools/scripts/script.sh`

but keep getting a “No such file or directory”. I also tried using the `change-workdir` with value `"$BITRISE_SOURCE_DIR"` before this step but still see the same error.

I feel I’m missing something basic here. Could anyone please help point me to what I may be doing wrong?

---

<div class="post-metadata">

**Author:** ![anselm.meyn](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@anselm.meyn](https://discuss.bitrise.io/u/anselm.meyn)\
**Post date:** [March 20, 2018, 3:22pm UTC](https://discuss.bitrise.io/t/run-bash-script-from-repo/4532/2 "2018-03-20T15:22:12Z")

</div>

Please ignore this (had a error in my file 🤦‍♂️ )

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [March 20, 2018, 7:09pm UTC](https://discuss.bitrise.io/t/run-bash-script-from-repo/4532/3 "2018-03-20T19:09:17Z")

</div>

Got it, glad to hear you managed to resolve it @anselm.meyn 😉

---

<div class="post-metadata">

**Author:** ![sneha.k](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@sneha.k](https://discuss.bitrise.io/u/sneha.k)\
**Post date:** [March 16, 2022, 9:26am UTC](https://discuss.bitrise.io/t/run-bash-script-from-repo/4532/4 "2022-03-16T09:26:40Z")

</div>

I am also facing same issue and there is nothing wrong with my code.  
All bash scripts are running successfully in command line but on calling those files from repo it is showing error.
