summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-04-13 14:08:14 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-04-13 14:08:14 -0300
commit0a443c4c7803777345b5e95fd79760557a6245d0 (patch)
treebc81fcc7734d1e89dfc4b3cbbf22110095fd83bf /share
parentcacd89daaa865cc170734e4c7e7dd81cedb725af (diff)
downloadhydra-0a443c4c7803777345b5e95fd79760557a6245d0.tar.gz
hydra-0a443c4c7803777345b5e95fd79760557a6245d0.tar.bz2
Fix error checking at module-add
Diffstat (limited to 'share')
-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