aboutsummaryrefslogtreecommitdiff
path: root/share/hydra/module-verify
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydra/module-verify')
-rwxr-xr-xshare/hydra/module-verify9
1 files changed, 4 insertions, 5 deletions
diff --git a/share/hydra/module-verify b/share/hydra/module-verify
index aa84c4d..29e9930 100755
--- a/share/hydra/module-verify
+++ b/share/hydra/module-verify
@@ -35,13 +35,12 @@ HASH_SUBMODULE="`git submodule | grep -E "modules/$MODULE( |$)" | awk '{ print $
cd $HYDRA_FOLDER/modules/$MODULE
-HASH_MODULE="`git log -1 "commit" | awk '{ print $2 }' | sed -e 's/\+//'`"
+HASH_MODULE="`git log -1 "$HASH_SUBMODULE" | head -n 1 | awk '{ print $2 }' | sed -e 's/\+//'`"
if [ "$HASH_MODULE" != "$HASH_SUBMODULE" ]; then
- echo "Module $MODULE: hash differ!!:"
- echo "Module: $HASH_MODULE"
- echo "Submodule: $HASH_SUBMODULE"
+ echo "Module $MODULE: commit not found!:"
+ echo "Commit: $HASH_SUBMODULE"
exit 1
fi
-echo "Latest commit hash match."
+echo "Commit check successful for $MODULE module."