From: dtucker@openbsd.org Date: Sun, 24 Jul 2022 23:29:10 +0000 (+0000) Subject: upstream: Test TEST_SSH_ELAPSED_TIMES for empty string not X-Git-Tag: V_9_1_P1~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ff886be132299386cc29d87c2aa16ff68a1aa08;p=thirdparty%2Fopenssh-portable.git upstream: Test TEST_SSH_ELAPSED_TIMES for empty string not executable. No-op on most platforms but should prevent warnings in -portable on systems that don't have 'date %s'. OpenBSD-Regress-ID: e39d79867b8065e33d0c5926fa1a31f85659d2a4 --- diff --git a/regress/test-exec.sh b/regress/test-exec.sh index d25c330b8..5d71d5836 100644 --- a/regress/test-exec.sh +++ b/regress/test-exec.sh @@ -1,9 +1,9 @@ -# $OpenBSD: test-exec.sh,v 1.90 2022/07/04 09:10:31 dtucker Exp $ +# $OpenBSD: test-exec.sh,v 1.91 2022/07/24 23:29:10 dtucker Exp $ # Placed in the Public Domain. #SUDO=sudo -if [ ! -x "$TEST_SSH_ELAPSED_TIMES" ]; then +if [ -z "$TEST_SSH_ELAPSED_TIMES" ]; then STARTTIME=`date '+%s'` fi