aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xshare/hydra/module-add4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydra/module-add b/share/hydra/module-add
index a226d4a..c47a7e3 100755
--- a/share/hydra/module-add
+++ b/share/hydra/module-add
@@ -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