From 510d7a778a3cd358bb99d87f09a7f6d81beed27d Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Wed, 22 Dec 2021 19:15:09 +0100 Subject: [PATCH] Fix(adduser): better way to avoid adduser() recursion --- plugins/adduser/adduser.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/adduser/adduser.plugin.zsh b/plugins/adduser/adduser.plugin.zsh index f6b8a4daf..b01e87ee1 100644 --- a/plugins/adduser/adduser.plugin.zsh +++ b/plugins/adduser/adduser.plugin.zsh @@ -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'"