do not fail if nothing todo (__user and __group)

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
remotes/origin/1.6
Nico Schottelius 14 years ago
parent ad9cac5fb6
commit 3c37ac0b0f
  1. 6
      conf/type/__group/gencode-remote
  2. 6
      conf/type/__user/gencode-remote

@ -43,7 +43,11 @@ if grep -q "^${name}:" "$__object/explorer/group"; then
fi
done
[ $# -gt 0 ] && echo groupmod $@ $name
if [ $# -gt 0 ]; then
echo groupmod "$@" "$name"
else
true
fi
else
for property in $(ls .); do
new_value="$(cat "$property")"

@ -59,7 +59,11 @@ if grep -q "^${name}:" "$__object/explorer/passwd"; then
fi
done
[ $# -gt 0 ] && echo usermod "$@" "$name"
if [ $# -gt 0 ]; then
echo usermod "$@" "$name"
else
true
fi
else
for property in $(ls .); do
new_value="$(cat "$property")"

Loading…
Cancel
Save