Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for sh

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

  • Cloud
  • Linux
  • Git

Copyright © 2012–2021