From d32b682239de08eb721ec32ba70012227b6ade41 Mon Sep 17 00:00:00 2001 From: George Danchev Date: Wed, 13 Jul 2011 11:41:39 +0000 Subject: [PATCH] fix device counting --- libisoburn/trunk/releng/manual_devices | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libisoburn/trunk/releng/manual_devices b/libisoburn/trunk/releng/manual_devices index 4bbbbe4b..8be5aa53 100755 --- a/libisoburn/trunk/releng/manual_devices +++ b/libisoburn/trunk/releng/manual_devices @@ -40,7 +40,10 @@ get_speeds() { get_devices() { echo -e "\n${SELF}: Running: $RELENG_XORRISO -devices 2>/dev/null | grep \"\-dev\"" DEVICES=`$RELENG_XORRISO -devices 2>/dev/null | grep "\-dev"` - NUM_DEV=`echo ${DEVICES} | wc -l` + NUM_DEV=`(cat <<+ +${DEVICES} ++ +) | wc -l` case "${NUM_DEV}" in 0)