From a95cb7e20a2e554be2fe4adb07299130c501aff5 Mon Sep 17 00:00:00 2001 From: Riccardo Schirone Date: Sat, 7 Jul 2018 00:45:29 +0200 Subject: [PATCH] travis-extract-var: correctly escape variables (#10646) * this is a long comment (just for test on travis) --- travis-extract-var.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis-extract-var.sh b/travis-extract-var.sh index 5d6e2cda12..98c04cce6f 100644 --- a/travis-extract-var.sh +++ b/travis-extract-var.sh @@ -5,7 +5,7 @@ print_var() VAR_NAME=$1 VAR_VALUE=$2 if [ "${VAR_VALUE}" != "" ] ; then - echo "${VAR_NAME}=${VAR_VALUE}" + printf "%s=%q\n" "${VAR_NAME}" "${VAR_VALUE}" fi }