mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-05-06 20:24:10 +02:00
Simple script to make a file executable and mark it as such in git
This commit is contained in:
Executable
+7
@@ -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