From fd707539d5824956e5afdce4d54b5dbac385f083 Mon Sep 17 00:00:00 2001 From: Julian lechner Date: Thu, 17 Sep 2026 23:03:44 +0200 Subject: [PATCH] refactor(hooks): drop unused workspace variable --- shared/hooks/scripts/validate-command-safety.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/shared/hooks/scripts/validate-command-safety.sh b/shared/hooks/scripts/validate-command-safety.sh index 4d3b629..c51cf11 100755 --- a/shared/hooks/scripts/validate-command-safety.sh +++ b/shared/hooks/scripts/validate-command-safety.sh @@ -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