Commit 73bf3e53 authored by dzhioev's avatar dzhioev Committed by Commit bot

Pngcrush version determined correctly.

'pngcrush -v' writes to stderr. Redirected stderr to stdout.

BUG=none
TEST=manually

Review URL: https://codereview.chromium.org/869433004

Cr-Commit-Position: refs/heads/master@{#314153}
parent 173da821
......@@ -384,7 +384,7 @@ function fail_if_not_installed {
# Check pngcrush version and exit if the version is in bad range.
# See crbug.com/404893.
function exit_if_bad_pngcrush_version {
local version=$(pngcrush -v | awk "/pngcrush 1.7./ {print \$3}")
local version=$(pngcrush -v 2>&1 | awk "/pngcrush 1.7./ {print \$3}")
local version_num=$(echo $version | sed "s/\.//g")
if [[ (1748 -lt $version_num && $version_num -lt 1773) ]] ; then
echo "Your pngcrush ($version) has a bug that exists from " \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment