useradd -a -G creates default user and default group same as username, and then appends wheel as a usergroup, while reading rest of the script, the intent is obviously to have wheel as the default usergroup due to chowning downloaded dotfiles and src files to username:wheel ...
current settings result in file permissions of files downloaded during install to be owned by username:wheel but newly created files are still owned by username:username due to -G flag ... use -g instead to set wheel as default usergroup
useradd -a -G creates default user and default group same as username, and then appends wheel as a usergroup, while reading rest of the script, the intent is obviously to have wheel as the default usergroup due to chowning downloaded dotfiles and src files to username:wheel ...
current settings result in file permissions of files downloaded during install to be owned by username:wheel but newly created files are still owned by username:username due to -G flag ... use -g instead to set wheel as default usergroup