portability fix: Solaris systems may not have a grep that understands -q

This commit is contained in:
Tim Rice 2015-03-16 22:49:20 -07:00
parent 8ef691f7d9
commit 9f82e5a904
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ t12.out:
${TEST_SSH_SSHKEYGEN} -q -t ed25519 -N '' -C 'test-comment-1234' -f $(OBJ)/$@ ${TEST_SSH_SSHKEYGEN} -q -t ed25519 -N '' -C 'test-comment-1234' -f $(OBJ)/$@
t12: t12.out t12: t12.out
${TEST_SSH_SSHKEYGEN} -lf $(OBJ)/t12.out.pub | grep -q test-comment-1234 ${TEST_SSH_SSHKEYGEN} -lf $(OBJ)/t12.out.pub | grep test-comment-1234 >/dev/null
t-exec: ${LTESTS:=.sh} t-exec: ${LTESTS:=.sh}
@if [ "x$?" = "x" ]; then exit 0; fi; \ @if [ "x$?" = "x" ]; then exit 0; fi; \

View File

@ -381,7 +381,7 @@ fatal ()
ssh_version () ssh_version ()
{ {
echo ${SSH_PROTOCOLS} | grep -q "$1" echo ${SSH_PROTOCOLS} | grep "$1" >/dev/null
} }
RESULT=0 RESULT=0