ocpasswd-test: updated grep check for more portability across systems

This commit is contained in:
Nikos Mavrogiannopoulos
2016-04-19 16:57:08 +02:00
parent 00b631e01e
commit 46a53437d0

View File

@@ -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