1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-30 17:50:07 +00:00

Fix(adduser): better way to avoid adduser() recursion

This commit is contained in:
Nikolas Garofil 2021-12-22 19:15:09 +01:00
parent ecc5aab0e7
commit 510d7a778a

View file

@ -9,7 +9,7 @@ adduser() {
#Create user, errors will be reported by the 'real' adduser #Create user, errors will be reported by the 'real' adduser
#Use which/tail combination to call the binary instead of this function #Use which/tail combination to call the binary instead of this function
$(which -a adduser | tail -1) $@ || return 1 command adduser $@ || return 1
echo "\nUser '${@[$#]}' has been created. I will now try to install 'Oh My Zsh'" echo "\nUser '${@[$#]}' has been created. I will now try to install 'Oh My Zsh'"