]> gitweb.fluxo.info Git - hydra.git/commitdiff
Fix error checking at module-add
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 13 Apr 2013 17:08:14 +0000 (14:08 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 13 Apr 2013 17:08:14 +0000 (14:08 -0300)
share/hydra/module-add

index a226d4aa1acdb0f276cee62bb8d4ef50d00c9d37..c47a7e36bff5e4a2e793e368c0c1da8d1acbbaaf 100755 (executable)
@@ -31,8 +31,8 @@ function hydra_module_add {
   if [ -z "$MODULE" ]; then
     echo "Usage: hydra <hydra> module-add <module> [<module1> ... <moduleN>]"
     exit 1
-  elif [ -d "$PUPPET/modules/$MODULE" ]; then
-    echo "No such module $MODULE at $HYDRA puppet configuration."
+  elif [ -d "$PUPPET/modules/$MODULE" ]; then
+    echo "Module $MODULE already added at $HYDRA puppet configuration."
     exit 1
   fi