]> andersk Git - openssh.git/commitdiff
- dtucker@cvs.openbsd.org 2008/06/10 15:21:41
authordtucker <dtucker>
Tue, 10 Jun 2008 15:38:52 +0000 (15:38 +0000)
committerdtucker <dtucker>
Tue, 10 Jun 2008 15:38:52 +0000 (15:38 +0000)
     [test-exec.sh]
     Use a more portable construct for checking if we're running a putty test

ChangeLog
regress/test-exec.sh

index 59f97fdb956c381eb25d14e73d002bb6a82d790f..180db22edfcd9ff00bf2943616e203bf837fd69c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -32,6 +32,9 @@
    - dtucker@cvs.openbsd.org 2008/06/10 05:23:32
      [regress/addrmatch.sh regress/Makefile]
      Regress test for Match CIDR rules.  ok djm@
+   - dtucker@cvs.openbsd.org 2008/06/10 15:21:41
+     [test-exec.sh]
+     Use a more portable construct for checking if we're running a putty test
   - (dtucker) [openbsd-compat/fake-rfc2553.h] Add sin6_scope_id to sockaddr_in6
     since the new CIDR code in addmatch.c references it.
 
index 89470682beb8cf01aa39f47d5081c5da03c9e8ca..f05c671cd53e79177af2cfbca7f5e8da29bcd2f7 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: test-exec.sh,v 1.32 2008/06/09 18:06:32 dtucker Exp $
+#      $OpenBSD: test-exec.sh,v 1.33 2008/06/10 15:21:41 dtucker Exp $
 #      Placed in the Public Domain.
 
 #SUDO=sudo
@@ -290,7 +290,15 @@ chmod 644 $OBJ/authorized_keys_$USER
 # If PuTTY is present and we are running a PuTTY test, prepare keys and
 # configuration
 REGRESS_INTEROP_PUTTY=no
-if test -x $PUTTYGEN -a -x $PLINK && [[ $SCRIPT = *putty* ]] ; then
+if test -x $PUTTYGEN -a -x $PLINK ; then
+       REGRESS_INTEROP_PUTTY=yes
+fi
+case "$SCRIPT" in
+*putty*)       ;;
+*)             REGRESS_INTEROP_PUTTY=no ;;
+esac
+
+if test "$REGRESS_INTEROP_PUTTY" = "yes" ; then
        mkdir -p ${OBJ}/.putty
 
        # Add a PuTTY key to authorized_keys
This page took 0.178599 seconds and 5 git commands to generate.