Optimize OS/release/version detection for faster execution #70

Merged
benpro merged 86 commits from fast-debian-check into master 2019-04-05 11:01:57 +02:00
Showing only changes of commit 76354bed48 - Show all commits

View file

@ -810,7 +810,8 @@ if is_debian; then
if [ "$IS_USERINADMGROUP" = 1 ]; then
if is_debian_stretch; then
for user in $(grep "^evolinux-sudo:" /etc/group |awk -F: '{print $4}' |tr ',' ' '); do
users=$(grep "^evolinux-sudo:" /etc/group | awk -F: '{print $4}' | tr ',' ' ')
for user in $users; do
groups $user | grep -q adm || failed "IS_USERINADMGROUP"
done
fi