bring back missing "check_is_executable.sh" precommit

This commit is contained in:
damien cavagnini
2025-08-01 11:37:36 +02:00
parent 2cab6eda26
commit 0cf11ca4cf
2 changed files with 14 additions and 0 deletions

View File

@@ -22,3 +22,10 @@ repos:
language: script language: script
pass_filenames: true pass_filenames: true
files: "^(bin|tests)/hardening/" files: "^(bin|tests)/hardening/"
- id: check_is_executable
name: check_is_executable.sh
description: Ensure checks are executables
entry: hooks/check_is_executable.sh
language: script
pass_filenames: true
files: "^bin/hardening/"

7
hooks/check_is_executable.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
for script in "$@"; do
chmod +x "$script"
done
exit 0