]> gitweb.fluxo.info Git - hydra.git/commitdiff
Better regexp at module-verify
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 19 Dec 2011 16:57:45 +0000 (14:57 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 19 Dec 2011 16:57:45 +0000 (14:57 -0200)
share/hydra/module-verify

index 59252ae30229149a05e3aea33a8dbedbde48bb32..2d0587bc685e3599f28f1ab4a3141883c4aa7ef0 100755 (executable)
@@ -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