mirror of
https://github.com/ovh/debian-cis.git
synced 2025-08-04 06:11:16 +02:00
bring back missing "check_is_executable.sh" precommit
This commit is contained in:
@@ -22,3 +22,10 @@ repos:
|
||||
language: script
|
||||
pass_filenames: true
|
||||
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
7
hooks/check_is_executable.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
for script in "$@"; do
|
||||
chmod +x "$script"
|
||||
done
|
||||
|
||||
exit 0
|
Reference in New Issue
Block a user