refactor(hooks): drop unused workspace variable

This commit is contained in:
Julian lechner committed 2026-09-17 23:03:44 +02:00
1 parent 953eb34e21
commit fd707539d5
1 file changed
-1
@@ -2,7 +2,6 @@
set -euo pipefail
command_text=${1:?Command is required}
workspace=${2:-$PWD}
for pattern in 'git reset --hard' 'git clean -fd' 'git clean -fx' 'rm -rf' 'Remove-Item -Recurse' 'format c:' 'del /s /q'; do
[[ ${command_text,,} != *"${pattern,,}"* ]] || { printf 'Blocked potentially destructive command: %s\n' "$pattern" >&2; exit 1; }
done