diff --git a/Rsync/rsync.sh b/Rsync/rsync.sh index cfe2411..f7468cf 100755 --- a/Rsync/rsync.sh +++ b/Rsync/rsync.sh @@ -452,8 +452,8 @@ else fi echo "━━━━━━━━━━━━━━━━━━━━━━━" -# Flush tee and preserve log for UI -exec 1>&-; wait +# Flush tee and preserve log for UI — close both ends of the pipe so tee gets EOF +exec 1>&- 2>&-; wait cp "$VV_LIVE_LOG" "$VV_LAST_LOG" 2>/dev/null rm -f "$VV_LIVE_LOG"