From 46a53437d0dece90800e7ced4c0e21ca0cf29166 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Tue, 19 Apr 2016 16:57:08 +0200 Subject: [PATCH] ocpasswd-test: updated grep check for more portability across systems --- tests/ocpasswd-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ocpasswd-test b/tests/ocpasswd-test index d771d046..a97551d5 100755 --- a/tests/ocpasswd-test +++ b/tests/ocpasswd-test @@ -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