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
This commit is contained in:
dtucker@openbsd.org 2022-07-24 23:29:10 +00:00 committed by Darren Tucker
parent f69319ad8a
commit 0ff886be13
1 changed files with 2 additions and 2 deletions

View File

@ -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. # Placed in the Public Domain.
#SUDO=sudo #SUDO=sudo
if [ ! -x "$TEST_SSH_ELAPSED_TIMES" ]; then if [ -z "$TEST_SSH_ELAPSED_TIMES" ]; then
STARTTIME=`date '+%s'` STARTTIME=`date '+%s'`
fi fi