Robert Kosten 2 rokov pred
rodič
commit
439142ed9c
2 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  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 "$@"