[util-*] use given primary group of user in chown cmd

- don't assume that the primary group of a user is named the same as the user itself
- fixes https://github.com/manjaro/manjaro-tools/issues/248
This commit is contained in:
Philip 2016-08-02 20:22:34 +02:00
parent 6c8dc34b7f
commit ec372237bd

View file

@ -151,7 +151,7 @@ eval_build_list "${list_dir_pkg}" "${build_list_pkg}"
prepare_dir "${pkg_dir}"
chown ${OWNER}:${OWNER} "${pkg_dir}"
chown ${OWNER}:$(id --group ${OWNER}) "${pkg_dir}"
init_base_devel