/
githubmirror
/
zulip
Обзор
Документация
Войти
/
githubmirror
/
zulip
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tools/ci/check-executables
9 строк
302 B
Anders Kaseorg
ci: Check that non-scripts aren’t marked executable.
07 дек 2022, 20:54
07 дек 2022, 20:54
872f4b4
Код
Авторство
О чём код?
#!/usr/bin/env bash set -euo pipefail files="$(git ls-tree -r @ | sed -n 's/^100755 blob \S\+\t//p' | xargs -r grep -Lz '^#!' --)" || [ $? = 123 ] if [ "$files" ]; then echo 'error: non-scripts should not be marked executable (fix with chmod -x):' echo printf '%s\n' "$files" exit 1 fi