[X2Go-Commits] [live-build-x2go] 148/166: we need to strip the ANSI as it doesn't work in issue.net via SSH
git-admin at x2go.org
git-admin at x2go.org
Mon Nov 20 02:17:07 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 885144ef1c56d49d0a1ae79a4333d7b45c8e8466
Author: Stefan Baur (BAUR-ITCS) <kontakt at baur-itcs.de>
Date: Wed Jul 26 04:05:12 2017 +0200
we need to strip the ANSI as it doesn't work in issue.net via SSH
---
config/includes.chroot/lib/live/config/2100-show-sysconf | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/config/includes.chroot/lib/live/config/2100-show-sysconf b/config/includes.chroot/lib/live/config/2100-show-sysconf
index 7217fc6..3962c9b 100755
--- a/config/includes.chroot/lib/live/config/2100-show-sysconf
+++ b/config/includes.chroot/lib/live/config/2100-show-sysconf
@@ -53,7 +53,8 @@ fi
echo "\$IPMSG" >> /etc/issue
[ -n "\$BOOTEDENV" ] && echo "- Booted Environment: \$BOOTEDENV" >> /etc/issue
[ -n "\$TIMESTAMP" ] && echo "- Build Version: \$TIMESTAMP (\$HUMANTIMESTAMP)" >> /etc/issue
- echo "\$IPMSG" >> /etc/issue.net
+ # we need to strip the ANSI as it doesn't work in issue.net via SSH
+ echo "\$IPMSG" | sed -r "s/\x1B\[(([0-9]+)(;[0-9]+)*)?[m,K,H,f,J]//g" >> /etc/issue.net
[ -n "\$BOOTEDENV" ] && echo "- Booted Environment: \$BOOTEDENV" >> /etc/issue.net
[ -n "\$TIMESTAMP" ] && echo "- Build Version: \$TIMESTAMP (\$HUMANTIMESTAMP)" >> /etc/issue.net
) &
--
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