mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
fix the log filename
This commit is contained in:
parent
90e34a3a2e
commit
f9aaac4a70
@ -24,7 +24,7 @@ if [[ $1 == sync:archive:* ]]; then
|
||||
tail --retry -f "${FTPSYNC_LOG_DIR}/rsync-ftpsync-${jobname}.log" &
|
||||
tail --retry -f "${FTPSYNC_LOG_DIR}/rsync-ftpsync-${jobname}.error" &
|
||||
wait $PID
|
||||
sz=$(tail -n 15 ${FTPSYNC_LOG_DIR}/rsync-ftpsync-${jobname}.log|grep -Po '(?<=Total file size: )\d+')
|
||||
sz=$(tail -n 15 ${FTPSYNC_LOG_DIR}/rsync-ftpsync-${jobname}.log.0|grep -Po '(?<=Total file size: )\d+')
|
||||
[[ -z "$sz" ]] || echo "Total size is" $(numfmt --to=iec $sz)
|
||||
else
|
||||
echo "Invalid command line"
|
||||
|
Loading…
x
Reference in New Issue
Block a user