[X2Go-Commits] [live-build-x2go] 31/160: some log output was still lacking the timestamp

git-admin at x2go.org git-admin at x2go.org
Sat Nov 18 01:55:36 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 f8ba909b029982e57a3c429ef09597896f1452f2
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Sun Jul 23 10:26:08 2017 +0200

    some log output was still lacking the timestamp
---
 config/includes.chroot/lib/live/config/2300-live-autoupdate | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/config/includes.chroot/lib/live/config/2300-live-autoupdate b/config/includes.chroot/lib/live/config/2300-live-autoupdate
index 6af3b8d..0639616 100755
--- a/config/includes.chroot/lib/live/config/2300-live-autoupdate
+++ b/config/includes.chroot/lib/live/config/2300-live-autoupdate
@@ -3,22 +3,22 @@
 cleanup () 
 { # discard contents of tmpfs, umount if necessary
 	if [ -n "$NTFSROOT" ]; then
-		echo "Removing '$TEMPDIR/*'."
+		echo -en "\n$(date +'%F | %T | ')'\$0': Removing '$TEMPDIR/*'."
 		rm -rf $TEMPDIR/*
 	else
-		echo "Unmounting '$TEMPDIR'."
+		echo -en "\n$(date +'%F | %T | ')'\$0': Unmounting '$TEMPDIR'."
 		umount $TEMPDIR
 	fi
 	if rmdir $TEMPDIR; then
-		echo "Removed empty directory '$TEMPDIR'."
+		echo -en "\n$(date +'%F | %T | ')'\$0': Removed empty directory '$TEMPDIR'."
 	else
-		echo "Could not remove directory '$TEMPDIR'."
+		echo -en "\n$(date +'%F | %T | ')'\$0': Could not remove directory '$TEMPDIR'."
 	fi
 	if [ -n "$NTFSROOT" ]; then
 		if umount $MOUNTPOINT; then
-			echo "Unmounted '$MOUNTPOINT'."
+			echo -en "\n$(date +'%F | %T | ')'\$0': Unmounted '$MOUNTPOINT'."
 		else
-			echo "Could not unmount '$MOUNTPOINT'."
+			echo -en "\n$(date +'%F | %T | ')'\$0': Could not unmount '$MOUNTPOINT'."
 		fi
 	fi
 }

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