From: David Kalnischkies Date: Sat, 3 Mar 2012 10:40:22 +0000 (+0100) Subject: allow msgtest to be used with only one parameter X-Git-Tag: 0.9.0~13^2~18 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/d73840dc51fe0762e0d170c47e07e13211a0de95 allow msgtest to be used with only one parameter --- diff --git a/test/integration/framework b/test/integration/framework index 99088b59b..a738d27cc 100644 --- a/test/integration/framework +++ b/test/integration/framework @@ -29,7 +29,8 @@ msgtest() { while [ -n "$1" ]; do echo -n "${CINFO}$1${CCMD} " >&2; echo -n "$(echo "$2" | sed -e 's/^aptc/apt-c/' -e 's/^aptg/apt-g/' -e 's/^aptf/apt-f/')${CINFO} " >&2; - shift 2 + shift + if [ -n "$1" ]; then shift; else break; fi done echo -n "…${CNORMAL} " >&2; }