travis-extract-var: correctly escape variables (#10646)

* this is a long comment (just for test on travis)
This commit is contained in:
Riccardo Schirone 2018-07-07 00:45:29 +02:00 committed by GitHub
parent ed73ea036c
commit a95cb7e20a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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