refactor groups assignment to meet existing patterns

This commit is contained in:
desolate
2026-06-01 12:42:34 +03:00
parent 3337df5150
commit 556724c5b4
5 changed files with 3 additions and 3 deletions
+24
View File
@@ -0,0 +1,24 @@
#!/bin/sh
sudo true
gum style --foreground 4 "
ASSIGNING GROUPS:
"
for file in "$GROUPS_DIR"/*.group; do
[ ! -f "$file" ] && continue
group="$(basename "${file%.group}")"
if sudo usermod -aG $group $USER; then
gum style --foreground 10 "$group"
else
gum style --foreground 9 "$group"
fi
done
gum style --foreground 6 "
Groups:
$(groups)"
View File
View File