lighthouse/scripts/download-chrome.sh

17 строки
384 B
Bash
Исходник Обычный вид История

2016-03-26 04:49:27 +03:00
#!/usr/bin/env bash
# Download chrome inside of our CI env.
2016-04-04 18:24:48 +03:00
if [ x"$LIGHTHOUSE_CHROMIUM_PATH" == x ]
then
echo "Error: Environment variable LIGHTHOUSE_CHROMIUM_PATH not set"
exit 1
fi
if [ -e "$LIGHTHOUSE_CHROMIUM_PATH" ]
2016-03-26 04:49:27 +03:00
then
echo "cached chrome found"
else
wget 'https://download-chromium.appspot.com/dl/Linux_x64?type=snapshots' -O chrome.zip && unzip chrome.zip
2016-03-26 04:49:27 +03:00
fi