File size: 249 Bytes
fca4fc0 |
1 2 3 4 5 6 7 8 9 |
#!/bin/bash
for file in $(git diff --cached --name-only --diff-filter=ACM | grep -E '\.(cpp|hpp|txt|inc)$'); do
if [ -x "$file" ]; then
chmod -x "$file"
echo "[remove-exec-bit] Removed executable bit from $file" >&2
fi
done
|