[X2Go-Commits] [x2gokdrive] 15/28: debian/rules: use printf instead of echo.

git-admin at x2go.org git-admin at x2go.org
Sat Oct 26 23:00:32 CEST 2019


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

x2go pushed a commit to branch master
in repository x2gokdrive.

commit 08df5a974970bcd61a02bc423b96c11947bed110
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Thu Oct 24 23:10:55 2019 +0200

    debian/rules: use printf instead of echo.
    
    Plain echo doesn't even substitute escape sequences for their plain char
    counterparts and the -e switch is non-portable.
---
 debian/changelog | 3 +++
 debian/rules     | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 1b10c70..e35a903 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -27,5 +27,8 @@ x2gokdrive (0.0.0.1-0x2go1) UNRELEASED; urgency=medium
       if-else construct.
     + Split up subshell content onto unique lines and fix bash syntax error
       near "exit 1".
+    + Use printf instead of echo. Plain echo doesn't even substitute escape
+      sequences for their plain char counterparts and the -e switch is
+      non-portable.
 
  -- Mike Gabriel <mike.gabriel at das-netzwerkteam.de>  Tue, 04 Jun 2019 14:10:43 +0200
diff --git a/debian/rules b/debian/rules
index bd953da..f47e1c1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,7 +32,7 @@ override_dh_auto_configure:
 		else \
 			( \
 				set +x; \
-				echo "\n##################################################\nERROR: This X2Go KDrive version does not support\nbuilding against X.Org version $$XORG_UPSTREAM_VERSION.\n##################################################\n"; \
+				printf '\n##################################################\nERROR: This X2Go KDrive version does not support\nbuilding against X.Org version %s.\n##################################################\n' "$${XORG_UPSTREAM_VERSION}"; \
 				exit 1; \
 			); \
 		fi

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


More information about the x2go-commits mailing list