Merge branch 'ls/travis-win-fix-status'
authorJunio C Hamano <gitster@pobox.com>
Mon, 1 May 2017 05:14:44 +0000 (14:14 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 May 2017 05:14:44 +0000 (14:14 +0900)
Relaying status from Windows build by Travis CI was done with an
unsafe invocation of printf.

* ls/travis-win-fix-status:
travis-ci: printf $STATUS as string

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