0

If I have a script like this:

#!/bin/bash
set -o errexit # Exit on error

cd /blah
do stuff...

I need to use chmod to set the script and everybody who pulls form the repo will have to do the same.

Is there a way to make this portable without having to set permissions?

dagda1
  • 23,659
  • 54
  • 216
  • 399

1 Answers1

0

I think you can set the file permissions so when it is pulled back it has them set still. See Updating file permissions only in git

Dave Irvine
  • 314
  • 4
  • 13