scripte/benutzer_anlegen/list_groups.sh

21 lines
397 B
Bash

0~#!/bin/bash
source ./data_utils.sh
list_groups() {
initialize_user_list
# Gruppenliste abrufen
group_list=$(read_groups | awk -F':' '{printf "Gruppe: %-20s Status: %s\n", $1, $2}')
if [[ -z "$group_list" ]]; then
dialog --msgbox "Keine Gruppen gefunden." 10 30
return
fi
# Gruppenliste anzeigen
dialog --msgbox "$group_list" 20 70
}
list_groups