diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index d92c9b4..ba2b0a3 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -60,4 +60,9 @@ entry: run-go-build.sh files: '\.go$' language: 'script' - description: "Runs `go build`, requires golang" + description: "Runs `go build`, requires golang" +- id: exec-command + name: 'exec-command' + entry: run-command.sh + language: 'script' + description: "It can run any command pass in args." diff --git a/run-command.sh b/run-command.sh new file mode 100755 index 0000000..56aa968 --- /dev/null +++ b/run-command.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +set -e +make $1