portability fix: Solaris systems may not have a grep that understands -q
This commit is contained in:
parent
8ef691f7d9
commit
9f82e5a904
|
@ -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; \
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue