1
0
mirror of https://github.com/aquatix/dotfiles.git synced 2025-12-06 21:45:10 +01:00

Simple script to make a file executable and mark it as such in git

This commit is contained in:
Michiel Scholten
2014-07-12 23:00:45 +02:00
parent 4a944416e0
commit b6f89beb1a

7
bin/git_executable.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [ -n "$1" ]; then
chmod +x $1
git update-index --chmod=+x $1
else
echo "Provide a target file to make executable"
fi