From dd2273aa170686aa3988f3713f5b573881335306 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Wed, 6 Jan 2016 22:39:52 +0100 Subject: Style (no "" in [[ ]] and spaces in $(( )) ) --- bin/ftpsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ftpsync b/bin/ftpsync index 506c823..b230823 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -206,10 +206,10 @@ tracefile() { echo "Architectures: ${out}" echo "Upstream-mirror: ${RSYNC_HOST}" total=0 - if [[ -e "${LOGDIR}/rsync-${NAME}.log" ]]; then + if [[ -e ${LOGDIR}/rsync-${NAME}.log ]]; then for bytes in $(egrep 'Total bytes received: ' "${LOGDIR}/rsync-${NAME}.log" | awk -F: '{print $2}'); do bytes=${bytes//,} - total=$((total + bytes)) + total=$(( total + bytes )) done echo "Total bytes received in rsync: ${total}" fi -- cgit v1.2.3