From c10aeaa8f2f8614de323c5e6d7268b063a321261 Mon Sep 17 00:00:00 2001 From: Tim Rice Date: Sun, 7 Nov 2010 13:03:11 -0800 Subject: [PATCH] - (tim) [regress/kextype.sh] Shell portability fix. --- ChangeLog | 1 + regress/keytype.sh | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ca87f0902..0b8d2c7f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 20101108 - (tim) [regress/Makefile] Fixes to allow building/testing outside source tree. + - (tim) [regress/kextype.sh] Shell portability fix. 20101107 - (dtucker) [platform.c] includes.h instead of defines.h so that we get diff --git a/regress/keytype.sh b/regress/keytype.sh index cd9024587..73858668e 100644 --- a/regress/keytype.sh +++ b/regress/keytype.sh @@ -14,8 +14,8 @@ fi for kt in $ktypes; do rm -f $OBJ/key.$kt - bits=${kt#*-} - type=${kt%-*} + bits=`echo ${kt} | awk -F- '{print $2}'` + type=`echo ${kt} | awk -F- '{print $1}'` printf "keygen $type, $bits bits:\t" ${TIME} ${SSHKEYGEN} -b $bits -q -N '' -t $type -f $OBJ/key.$kt ||\ fail "ssh-keygen for type $type, $bits bits failed"