diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2013-04-13 14:08:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2013-04-13 14:08:14 -0300 |
commit | 0a443c4c7803777345b5e95fd79760557a6245d0 (patch) | |
tree | bc81fcc7734d1e89dfc4b3cbbf22110095fd83bf /share | |
parent | cacd89daaa865cc170734e4c7e7dd81cedb725af (diff) | |
download | hydra-0a443c4c7803777345b5e95fd79760557a6245d0.tar.gz hydra-0a443c4c7803777345b5e95fd79760557a6245d0.tar.bz2 |
Fix error checking at module-add
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydra/module-add | 4 |
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 |