diff options
author | Joerg Jaspert <joerg@debian.org> | 2011-03-03 09:58:42 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2011-03-03 09:58:42 +0100 |
commit | 1634dc7e251df33bed3da3b757ac4ff77a5423c6 (patch) | |
tree | 333b234ddd0e4e6302e0419d0c450204ddbd4988 /bin | |
parent | 957f0f45462f921ee1fd3ad958a91916274e3db2 (diff) |
dont break if there is no , return a default empty
Signed-off-by: Joerg Jaspert <joerg@debian.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ftpsync | 2 |
1 files changed, 1 insertions, 1 deletions
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%%.*} |