travis-ci: printf $STATUS as string
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>
This commit is contained in:
parent
e2cb6ab84c
commit
c4b4968397
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user