From 0a443c4c7803777345b5e95fd79760557a6245d0 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 13 Apr 2013 14:08:14 -0300 Subject: Fix error checking at module-add --- share/hydra/module-add | 4 ++-- 1 file 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 module-add [ ... ]" 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 -- cgit v1.2.3