Merge branch 'jk/write-in-full-fix' into next
[gitweb.git] / ci / run-windows-build.sh
index c55efa1d1f0a956db6c91315b818c546ab1d340b..8757b3a97c5d7598bfdb2ec1f42cbb6851bae448 100755 (executable)
@@ -1,11 +1,13 @@
 #!/usr/bin/env bash
 #
-# Script to trigger the Git for Windows build and test run.
+# Script to trigger the Git for Windows build and test run.
 # Set the $GFW_CI_TOKEN as environment variable.
 # Pass the branch (only branches on https://github.com/git/git are
 # supported) and a commit hash.
 #
 
+. ${0%/*}/lib-travisci.sh
+
 test $# -ne 2 && echo "Unexpected number of parameters" && exit 1
 test -z "$GFW_CI_TOKEN" && echo "GFW_CI_TOKEN not defined" && exit
 
@@ -74,7 +76,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