[X2Go-Commits] [live-build-x2go] 44/60: this script had echo commands meant for a different shell; changed so the used parameters match the shell in use

git-admin at x2go.org git-admin at x2go.org
Mon Nov 28 19:43:54 CET 2022


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

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

commit 02e08e71878dad7092d51a0a933ac2b82c0669bc
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Sat Jun 27 15:43:21 2020 +0200

    this script had echo commands meant for a different shell; changed so
    the used parameters match the shell in use
---
 .../etc/X11/Xsession.d/60x11-set-xbackground               | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/config/includes.chroot/etc/X11/Xsession.d/60x11-set-xbackground b/config/includes.chroot/etc/X11/Xsession.d/60x11-set-xbackground
index 63243fe..cfdab6a 100644
--- a/config/includes.chroot/etc/X11/Xsession.d/60x11-set-xbackground
+++ b/config/includes.chroot/etc/X11/Xsession.d/60x11-set-xbackground
@@ -19,16 +19,16 @@ if [ -n "$XROOT" ] ; then
 
 	if echo "$XROOT" | grep -q "://" ; then
 		# this could be an URI
-		echo -n "\n$(date +'%F | %T | ')'$0' URL detected." | tee -a /dev/tty8
+		echo -en "\n$(date +'%F | %T | ')'$0' URL detected." | tee -a /dev/tty8
 		if ! [ -f "/etc/x2go/x2gothinclient-minidesktop_start" ] ; then
 			(
 				while ! [ $(ls -1 $IMAGEDIR/background/* 2>/dev/null | wc -l) -gt 0 ] ; do
-					echo -n "\n$(date +'%F | %T | ')'$0' Waiting for image directory to populate ..." | tee -a /dev/tty8
+					echo -en "\n$(date +'%F | %T | ')'$0' Waiting for image directory to populate ..." | tee -a /dev/tty8
 					xsetroot -grey # show that something's amiss
 					sleep 1
 				done
 				feh --no-fehbg --bg-$POSITION $IMAGEDIR/background/*
-				echo -n "\n$(date +'%F | %T | ')'$0' New X background image(s) has/have been set." | tee -a /dev/tty8
+				echo -en "\n$(date +'%F | %T | ')'$0' New X background image(s) has/have been set." | tee -a /dev/tty8
 			) &
 		fi
 
@@ -37,10 +37,10 @@ if [ -n "$XROOT" ] ; then
 		HEXCOLOR=${XROOTSHORT#0x}
 		if [ 6 = ${#HEXCOLOR} ] ; then
 			xsetroot -solid "#$HEXCOLOR" # set requested color
-			echo -n "\n$(date +'%F | %T | ')'$0' New X background color has been set." | tee -a /dev/tty8
+			echo -en "\n$(date +'%F | %T | ')'$0' New X background color has been set." | tee -a /dev/tty8
 		else
 			xsetroot -grey # show that something's amiss
-			echo -n "\n$(date +'%F | %T | ')'$0' Error: X background color has been set to grey grid." | tee -a /dev/tty8
+			echo -en "\n$(date +'%F | %T | ')'$0' Error: X background color has been set to grey grid." | tee -a /dev/tty8
 		fi
 	else 
 		: # NOP
@@ -49,7 +49,7 @@ if [ -n "$XROOT" ] ; then
 else
 	# set our default color
 	xsetroot -solid "#246ed8"
-	echo -n "\n$(date +'%F | %T | ')'$0' Default X background color has been set." | tee -a /dev/tty8
+	echo -en "\n$(date +'%F | %T | ')'$0' Default X background color has been set." | tee -a /dev/tty8
 fi
 
-echo -n "\n$(date +'%F | %T | ')'$0' Done." | tee -a /dev/tty8
+echo -en "\n$(date +'%F | %T | ')'$0' Done." | tee -a /dev/tty8

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/live-build-x2go.git


More information about the x2go-commits mailing list