[X2Go-Commits] [live-build-x2go] 123/166: using mv would accumulate clutter in $DOWNLOADPATH if any extra files are present in the source; switched to rsync --delete and rm instead

git-admin at x2go.org git-admin at x2go.org
Mon Nov 20 02:17:00 CET 2017


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch feature/mate-minidesktop
in repository live-build-x2go.

commit 2abcdd2f8328cf1e6f0fb88568104dbc065fc9b2
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Mon Jul 24 20:19:59 2017 +0200

    using mv would accumulate clutter in $DOWNLOADPATH if any extra files are present in the source; switched to rsync --delete and rm instead
---
 config/includes.chroot/lib/live/config/2400-live-autoupdate | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/config/includes.chroot/lib/live/config/2400-live-autoupdate b/config/includes.chroot/lib/live/config/2400-live-autoupdate
index 3f1e0fd..6b6ac3f 100755
--- a/config/includes.chroot/lib/live/config/2400-live-autoupdate
+++ b/config/includes.chroot/lib/live/config/2400-live-autoupdate
@@ -379,7 +379,9 @@ echo -n " live-autoupdater (backgrounding update task)"
 	# move everything over to the boot medium
 	#
 	echo "\n$(date +'%F | %T | ')'$0': Moving $TEMPDIR/* => $DOWNLOADPATH"
-	mv $TEMPDIR/* $DOWNLOADPATH
+	# using mv would accumulate clutter in $DOWNLOADPATH if any extra files are present in the source
+	rsync -aPv --inplace --delete --modify-window=1 $TEMPDIR/ $DOWNLOADPATH/
+	rm -rf $TEMPDIR/*
 	if [ -n "$NTFSROOT" ]; then
 		echo "\n$(date +'%F | %T | ')'$0': NTFSROOT detected. Attempting to mount '/dev/disk/by-uuid/$NTFSROOT'."
 		if mount -t ntfs-3g -rw /dev/disk/by-uuid/$NTFSROOT /lib/live/mount/ntfsroot; then

--
Alioth's /srv/git/code.x2go.org/live-build-x2go.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list