From fdc12393d9068745bd7571ee446f76bd5485529e Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Thu, 29 Jun 2023 15:41:59 +0800 Subject: [PATCH] Revert "riot: loosen username check as sometimes it's not a unix username" This reverts commit bdb64ce1f2945f49ed877014bffe77131b7f2767. --- scripts/riot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/riot b/scripts/riot index 352d2cf..8b8c1b6 100755 --- a/scripts/riot +++ b/scripts/riot @@ -14,7 +14,7 @@ check_port() { # check if username valid check_username() { - ( echo $1 | grep -qxE "^[-.a-z0-9_]*\$" ) || return 1 + ( echo $1 | grep -qxE "^[a-z][-a-z0-9_]*\$" ) || return 1 return 0 }