From: dtucker Date: Sun, 24 Jul 2022 23:29:10 +0000 (+0000) Subject: Test TEST_SSH_ELAPSED_TIMES for empty string not executable. No-op X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fb4fdf02fe525b00ba375252efde79d1e23dce79;p=openbsd 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'. --- diff --git a/regress/usr.bin/ssh/test-exec.sh b/regress/usr.bin/ssh/test-exec.sh index d2fefe37372..147a18c40f9 100644 --- a/regress/usr.bin/ssh/test-exec.sh +++ b/regress/usr.bin/ssh/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