diff --git a/maint/shebang b/maint/shebang new file mode 100755 index 000000000..5d9483bf3 --- /dev/null +++ b/maint/shebang @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +if git grep -rnI "^#\!/" :/ | grep -v "#\!/usr/bin/env" +then + echo "Absolute shebangs found, replace them with \"#!/usr/bin/env\"" + exit 1 +else + echo "Everything seems ok" + exit 0 +fi