1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-30 19:54:43 +00:00

boostrap: Prompt for sudo in create_daemon_users if non-interactive

This commit is contained in:
cmacrae 2017-06-02 15:43:38 +01:00
parent 7075538f7e
commit 30ae060482

View file

@ -80,7 +80,7 @@ sudo_prompt(){
# Daemon setup
create_daemon_users(){
echo -e ""$BLUE"Nix daemon user/group configuration"$ESC""
sudo_prompt
[ ! -z $CREATE_DAEMON_USERS ] && sudo_prompt
# If the group exists, dscl returns exit code 56.
# Since this is not strictly an error code, standard code