mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-09 16:26:59 +08:00
ocpasswd-test: updated grep check for more portability across systems
This commit is contained in:
@@ -45,7 +45,7 @@ if test $? != 0;then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
grep -e "\:\!\$5" passwd.out >/dev/null 2>&1
|
||||
grep ':!\$' passwd.out >/dev/null 2>&1
|
||||
if test $? != 0;then
|
||||
echo "Failed locking user test. The exclamation mark wasn't found"
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user