install.fairie/home/.chezmoiscripts/darwin/run_onchange_before_20-ensure-user-group.tmpl
2023-01-24 23:36:59 -05:00

8 lines
350 B
Bash

#!/usr/bin/env bash
{{ includeTemplate "universal/profile-before" }}
{{ includeTemplate "universal/logg-before" }}
### Ensure user has group of same name (required for Macports)
logg info 'Ensuring user has a group with the same name and that it is a member. Sudo privileges may be required'
echo y | sudo dseditgroup -o create "$USER" > /dev/null