mirror of
https://github.com/aquatix/dotfiles.git
synced 2025-12-07 00:05:10 +01:00
Simple script to make a file executable and mark it as such in git
This commit is contained in:
7
bin/git_executable.sh
Executable file
7
bin/git_executable.sh
Executable 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
|
||||
Reference in New Issue
Block a user