commit c8b5da42153560fc464d2e14837db74854b456c3 parent 13da50619b140208ff47d2a3007d2ee743324437 Author: hhvn <hayden@haydenvh.com> Date: Wed, 3 Feb 2021 19:20:54 +0000 include/userinfo.sh: fix checknmail Diffstat:
M | include/userinfo.sh | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/userinfo.sh b/include/userinfo.sh @@ -42,8 +42,9 @@ checknmail(){ echo "$1" | grep -Ev '^..*@.*' >/dev/null && error "doesn't like like an email addr" && return 1 for u in $datadir/users/* do - [ "$(userget "$u" email)" = "$1" ] && error "addr already in use" && return 1 + [ "$(userget "$(basename $u)" email)" = "$1" ] && error "addr already in use" && return 1 done + return 0 } check(){