move code generation outside of loop

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2015-01-23 14:07:18 +01:00
parent 7d73cc5ed6
commit 26143b8b77

View file

@ -88,12 +88,12 @@ if [ "$state" = "present" ]; then
set -- "$@" "$(shorten_property $property)" \'$new_value\'
fi
fi
done
if [ "$os" = "freebsd" ]; then
echo pw groupadd "$@" "$name"
else
echo groupadd "$@" "$name"
fi
done
fi
else
# delete existing