mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 21:42:05 +08:00
dd778596b7
date: 2025-03-15T21:10:51 master commit: fb7b9c0f9420d228f03362970ebcfb7237095cf3
16 lines
320 B
Bash
Executable File
16 lines
320 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
FAIL=0
|
|
|
|
if grep '^#!.*python' $@ | grep -v '#!/usr/bin/env python3$'; then
|
|
echo -e "Invalid shebang! Must use '#!/usr/bin/env python3'\n"
|
|
FAIL=1
|
|
fi
|
|
|
|
if grep '^#!.*bash' $@ | grep -v '#!/usr/bin/env bash$'; then
|
|
echo -e "Invalid shebang! Must use '#!/usr/bin/env bash'"
|
|
FAIL=1
|
|
fi
|
|
|
|
exit $FAIL
|