branch: elpa/hyperdrive
commit 13f4a2af90c3653db76b82e7534a90eca03bc41f
Author: Adam Porter <a...@alphapapa.net>
Commit: Joseph Turner <jos...@ushin.org>

    Fix: (tracked-hooks/pre-commit)
---
 tracked-hooks/pre-commit | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/tracked-hooks/pre-commit b/tracked-hooks/pre-commit
index cea9539c16..edb66f9d58 100755
--- a/tracked-hooks/pre-commit
+++ b/tracked-hooks/pre-commit
@@ -1,5 +1,11 @@
-#!/bin/sh
-git status -s | \
-    grep '^M  doc/hyperdrive.org$' > /dev/null && \
-    make doc && \
-    git add doc/hyperdrive.texi
+#!/bin/bash
+
+make doc
+
+if [[ $(git status --porcelain -- doc/hyperdrive.texi) ]]
+then
+    echo "hyperdrive.texi may need to be added"
+    exit 1
+else
+    exit 0
+fi

Reply via email to