summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2016-01-06 22:39:52 +0100
committerJoerg Jaspert <joerg@debian.org>2016-01-06 22:39:52 +0100
commitdd2273aa170686aa3988f3713f5b573881335306 (patch)
tree1d57931a222a4625c8a58dc1cecd57057d4f8572
parentf086b996fc19120dcba964466390475337013e56 (diff)
Style (no "" in [[ ]] and spaces in $(( )) )
-rwxr-xr-xbin/ftpsync4
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