From 1634dc7e251df33bed3da3b757ac4ff77a5423c6 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Thu, 3 Mar 2011 09:58:42 +0100 Subject: dont break if there is no , return a default empty Signed-off-by: Joerg Jaspert --- bin/ftpsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ftpsync b/bin/ftpsync index 484789d..1582f7a 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -113,7 +113,7 @@ cleanup() { SPEED=$( SPEEDLINE=$(egrep '[0-9.]+ bytes/sec' "${LOGDIR}/rsync-${NAME}.log") set "nothing" ${SPEEDLINE} - echo $8 + echo ${8:-""} ) if [ -n "${SPEED}" ]; then SPEED=${SPEED%%.*} -- cgit v1.2.3