Change order of checks

per telmich's suggestion in https://github.com/telmich/cdist/pull/82/files#r1043875
This commit is contained in:
Jake Guffey 2012-06-25 13:19:19 -04:00
parent 2aee33fe06
commit 946d2b9d43

View file

@ -36,7 +36,6 @@ if grep -q "^${name}:" "$__object/explorer/group"; then
case "$property" in case "$property" in
password) password)
current_value="$(awk -F: '{ print $2 }' < "$__object/explorer/gshadow")"
if [ "$os" = "freebsd" ]; then if [ "$os" = "freebsd" ]; then
echo "group/$name: FreeBSD doesn't support password modification" >&2 echo "group/$name: FreeBSD doesn't support password modification" >&2
exit 1 exit 1
@ -48,6 +47,7 @@ if grep -q "^${name}:" "$__object/explorer/group"; then
exit 1 exit 1
;; ;;
esac esac
current_value="$(awk -F: '{ print $2 }' < "$__object/explorer/gshadow")"
;; ;;
gid) gid)
# set to -g to support older redhat/centos # set to -g to support older redhat/centos