refactor groups assignment to meet existing patterns
This commit is contained in:
@@ -6,11 +6,11 @@ gum style --foreground 4 "
|
||||
ASSIGNING GROUPS:
|
||||
"
|
||||
|
||||
for file in "$GROUPS_DIR"/*; do
|
||||
for file in "$GROUPS_DIR"/*.group; do
|
||||
|
||||
[ ! -f "$file" ] && continue
|
||||
|
||||
group="$(basename "$file")"
|
||||
group="$(basename "${file%.group}")"
|
||||
|
||||
if sudo usermod -aG $group $USER; then
|
||||
gum style --foreground 10 "✓ $group"
|
||||
+1
-1
@@ -10,7 +10,7 @@ GROUPS_DIR="$DESOLATE_DIR/groups"
|
||||
|
||||
. "$PACKAGES_DIR/install.sh"
|
||||
. "$DOTFILES_DIR/install.sh"
|
||||
. "$DESOLATE_DIR/assign-groups.sh"
|
||||
. "$GROUPS_DIR/assign.sh"
|
||||
. "$SERVICES_DIR/install.sh"
|
||||
|
||||
gum style --foreground 15 "
|
||||
|
||||
Reference in New Issue
Block a user