aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-12-19 14:57:45 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-12-19 14:57:45 -0200
commitae17ce41323bbf409b704e7fe3270e8fd641909c (patch)
tree234e034b7f929c65372e6a012e984177394640ad
parent90fda0e707593f541831fe6d44b2af902c0ead2d (diff)
downloadhydra-ae17ce41323bbf409b704e7fe3270e8fd641909c.tar.gz
hydra-ae17ce41323bbf409b704e7fe3270e8fd641909c.tar.bz2
Better regexp at module-verify
-rwxr-xr-xshare/hydra/module-verify2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/hydra/module-verify b/share/hydra/module-verify
index 59252ae..2d0587b 100755
--- a/share/hydra/module-verify
+++ b/share/hydra/module-verify
@@ -17,7 +17,7 @@ elif [ -z "$HYDRA_FOLDER" ] || [ ! -e "$HYDRA_FOLDER/modules" ]; then
fi
cd $PUPPET
-HASH_SUBMODULE="`git submodule | grep "modules/$MODULE " | awk '{ print $1 }' | \
+HASH_SUBMODULE="`git submodule | grep -E "modules/$MODULE( |$)" | awk '{ print $1 }' | \
sed -e 's/\+//' -e 's/-//'`"
cd $HYDRA_FOLDER/modules/$MODULE