Robert Kosten vor 2 Jahren
Ursprung
Commit
439142ed9c
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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 "$@"