summaryrefslogtreecommitdiff
path: root/scripts/vyos-user-precommit-hooks.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyos-user-precommit-hooks.sh')
-rw-r--r--scripts/vyos-user-precommit-hooks.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/vyos-user-precommit-hooks.sh b/scripts/vyos-user-precommit-hooks.sh
new file mode 100644
index 0000000..cae38db
--- /dev/null
+++ b/scripts/vyos-user-precommit-hooks.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ -d /config/scripts/commit/pre-hooks.d/ ]; then
+ /bin/run-parts /config/scripts/commit/pre-hooks.d
+fi
+