Test TEST_SSH_ELAPSED_TIMES for empty string not executable. No-op
authordtucker <dtucker@openbsd.org>
Sun, 24 Jul 2022 23:29:10 +0000 (23:29 +0000)
committerdtucker <dtucker@openbsd.org>
Sun, 24 Jul 2022 23:29:10 +0000 (23:29 +0000)
on most platforms but should prevent warnings in -portable on systems
that don't have 'date %s'.

regress/usr.bin/ssh/test-exec.sh

index d2fefe3..147a18c 100644 (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.
 
 #SUDO=sudo
 
-if [ ! -x "$TEST_SSH_ELAPSED_TIMES" ]; then
+if [ -z "$TEST_SSH_ELAPSED_TIMES" ]; then
        STARTTIME=`date '+%s'`
 fi