Re: [PATCH v1] travis-ci: printf $STATUS as string
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Apr 26, 2017, 19:49 UTC
- Message-ID
- <alpine.DEB.2.20.1704262147550.3480@virtualbox>
- In-Reply-To
- <20170426193933.28961-1-larsxschneider@gmail.com>
Hi,
On Wed, 26 Apr 2017, Lars Schneider wrote:
Show 5 quoted lines
> 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>
ACK.
For reference, the status should always be a single all-ASCII word, but sometimes it looks as if there is a server error that returns a full-blown HTML error page (including a style that contains something like 'width: 10%;' which would be misinterpreted by printf as a format string).
Ciao, Dscho