mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-30 09:40:09 +00:00
Fix(adduser): better way to avoid adduser() recursion
This commit is contained in:
parent
ecc5aab0e7
commit
510d7a778a
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ adduser() {
|
|||
|
||||
#Create user, errors will be reported by the 'real' adduser
|
||||
#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'"
|
||||
|
|
Loading…
Reference in a new issue