forked from ungleich-public/cdist
move code generation outside of loop
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
7d73cc5ed6
commit
26143b8b77
1 changed files with 5 additions and 5 deletions
|
@ -88,12 +88,12 @@ if [ "$state" = "present" ]; then
|
||||||
set -- "$@" "$(shorten_property $property)" \'$new_value\'
|
set -- "$@" "$(shorten_property $property)" \'$new_value\'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ "$os" = "freebsd" ]; then
|
|
||||||
echo pw groupadd "$@" "$name"
|
|
||||||
else
|
|
||||||
echo groupadd "$@" "$name"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
if [ "$os" = "freebsd" ]; then
|
||||||
|
echo pw groupadd "$@" "$name"
|
||||||
|
else
|
||||||
|
echo groupadd "$@" "$name"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# delete existing
|
# delete existing
|
||||||
|
|
Loading…
Reference in a new issue