mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-31 04:04:45 +00:00
bootstrap: check nixbld group before asking
This commit is contained in:
parent
c5a81146dc
commit
d0850bcfbe
1 changed files with 18 additions and 15 deletions
|
@ -174,6 +174,7 @@ install(){
|
|||
echo "If you decide not to, but later change your mind, you can always re-run"
|
||||
echo -e "this script with "$YELLOW"-u"$ESC" or "$YELLOW"--create-daemon-users"$ESC""
|
||||
|
||||
if ! dscl . -read /Groups/nixbld PrimaryGroupID &> /dev/null; then
|
||||
while true; do
|
||||
read -p "Would you like to create the Nix daemon group/users? [y/n] " ANSWER
|
||||
case $ANSWER in
|
||||
|
@ -187,8 +188,10 @@ install(){
|
|||
;;
|
||||
*)
|
||||
echo "Please answer 'y' or 'n'..."
|
||||
;;
|
||||
esac
|
||||
done
|
||||
fi
|
||||
|
||||
# Finish
|
||||
echo -e ""$GREEN"You're all done!"$ESC""
|
||||
|
|
Loading…
Add table
Reference in a new issue