diff options
author | Joerg Jaspert <joerg@debian.org> | 2016-01-06 22:39:52 +0100 |
---|---|---|
committer | Joerg Jaspert <joerg@debian.org> | 2016-01-06 22:39:52 +0100 |
commit | dd2273aa170686aa3988f3713f5b573881335306 (patch) | |
tree | 1d57931a222a4625c8a58dc1cecd57057d4f8572 | |
parent | f086b996fc19120dcba964466390475337013e56 (diff) |
Style (no "" in [[ ]] and spaces in $(( )) )
-rwxr-xr-x | bin/ftpsync | 4 |
1 files 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 |