Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Linux/Run Bash Script in GitBash

February 8, 2019

Run Bash Script in GitBash

Unfortunately, you can’t run Bash scripts in GitBash the normal way. Here’s the workaround. You have to use sh script.sh

# Normal use
./script.sh
# Running it in GitBash
sh script.sh

# Normal use ./script.sh # Running it in GitBash sh script.sh

Filed Under: Linux Tagged With: gitbash, run, sh

Have content delivered to your mail. Subscribe below.

About Me

I'm Ulysses, a Cloud Engineer at Cardinal Health based in Columbus, Ohio. I’m a certified AWS Solutions Architect. This website is my way of documenting the things I have learned in the Cloud. When off the grid, I enjoy riding my electric skateboard. I have surfed, snowboarded and played the saxophone in the past. I hope you will find this site helpful. It's powered by WordPress and hosted in AWS LightSail.

  • Cloud
  • Linux
  • Git

Copyright © 2012–2021