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
  • 26,856
  • 59
  • 237
  • 450

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
  • 384
  • 4
  • 14