[X2Go-Commits] [live-build-x2go] 76/160: only rm if rsync was successful

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 01:55:45 CET 2017


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

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

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

    only rm if rsync was successful
---
 config/includes.chroot/lib/live/config/2400-live-autoupdate | 2 +-
 1 file changed, 1 insertion(+), 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 6b6ac3f..9392c8c 100755
--- a/config/includes.chroot/lib/live/config/2400-live-autoupdate
+++ b/config/includes.chroot/lib/live/config/2400-live-autoupdate
@@ -380,7 +380,7 @@ echo -n " live-autoupdater (backgrounding update task)"
 	#
 	echo "\n$(date +'%F | %T | ')'$0': Moving $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/
+	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'."

--
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