Browse Source

more debugging

Robert Kosten 2 years ago
parent
commit
439142ed9c
2 changed files with 3 additions and 3 deletions
  1. 2 2
      .pre-commit-hooks.yaml
  2. 1 1
      pre_commit_hooks/shellharden.sh

+ 2 - 2
.pre-commit-hooks.yaml

@@ -2,8 +2,8 @@
 
 - id: shellharden
   name: Shell Syntax Check
-  description: "Runs https://github.com/anordal/shellharden on shell scripts."
+  description: "Runs https://github.com/anordal/shellharden on bash scripts."
   entry: pre_commit_hooks/shellharden.sh
   language: script
   types:
-    - shell
+    - bash

+ 1 - 1
pre_commit_hooks/shellharden.sh

@@ -11,7 +11,7 @@ if ! hash shellharden 2>/dev/null; then
   exit 78
 fi
 
-echo "$@"
+echo "# $@ #"
 exit 1
 
 shellharden --check "$@"