[X2Go-Commits] [live-build-x2go] 58/60: /dev/disxk/by-label may contain "\x20" for blanks, this needs to be interpreted, "echo -e" is the way to do this.

git-admin at x2go.org git-admin at x2go.org
Mon Nov 28 19:43:58 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 ce3fda6292c361c0a39480d1e6782323b04fd688
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date:   Sat Aug 22 18:16:55 2020 +0200

    /dev/disxk/by-label may contain "\x20" for blanks, this needs to be
    interpreted, "echo -e" is the way to do this.
---
 config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia b/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
index 2fa84b3..ff93031 100755
--- a/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
+++ b/config/includes.chroot/lib/live/config/2260-getsshhostkeysfrommedia
@@ -84,7 +84,7 @@ GetSSHHostKeysFromMedia ()
 	                LABELMPLIST=$(lsblk -oLABEL,RM,NAME,MOUNTPOINT -ln)
 			LSBLKLIST=$(echo "$LABELMPLIST" | grep -v "^ " | awk '{print $1}' | sort -u | tr '\n' '|') # generated from lsblk
 			echo -n "\n$(date +'%F | %T | ')'$0' Status of lsblk: '$LSBLKLIST'." | tee -a /dev/tty8
-			[ "$LABELLIST" = "$LSBLKLIST" ] && break
+			[ "$(echo -e "$LABELLIST")" = "$LSBLKLIST" ] && break
 			sleep 1
 		done
 

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