travis-ci: printf $STATUS as string
authorLars Schneider <larsxschneider@gmail.com>
Wed, 26 Apr 2017 19:39:33 +0000 (21:39 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Apr 2017 01:23:19 +0000 (18:23 -0700)
If the $STATUS variable contains a "%" character then printf will
interpret that as invalid format string. Fix this by formatting $STATUS
as string.

Signed-off-by: Lars Schneider <larsxschneider@gmail.com>
Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/run-windows-build.sh
index 4e3a50b60ee5e1b1dd5ccd9d135b7065f2af04db..e0434407996b75d1f88b55062b7f0a23db098bed 100755 (executable)
@@ -55,7 +55,7 @@ while true
 do
        LAST_STATUS=$STATUS
        STATUS=$(gfwci "action=status&buildId=$BUILD_ID")
-       test "$STATUS" = "$LAST_STATUS" || printf "\nStatus: $STATUS "
+       test "$STATUS" = "$LAST_STATUS" || printf "\nStatus: %s " "$STATUS"
        printf "."
 
        case "$STATUS" in