mirror of https://github.com/procxx/kepka.git
Merge pull request #1848 from telegramdesktop/auchri/fix_travis
Fix travis build
This commit is contained in:
commit
13310206fa
|
@ -50,10 +50,11 @@ setup_chroot() {
|
||||||
|
|
||||||
if [ ! -f $archive ]; then
|
if [ ! -f $archive ]; then
|
||||||
# get root fs
|
# get root fs
|
||||||
local curl=$(curl --fail -O "$ARCH_TRAVIS_MIRROR/iso/$ARCH_TRAVIS_ARCH_ISO/$archive" 2>&1)
|
curl --fail -O "$ARCH_TRAVIS_MIRROR/iso/$ARCH_TRAVIS_ARCH_ISO/$archive" 2>&1
|
||||||
|
local ret=$?
|
||||||
|
|
||||||
# if it fails, try arch iso form the previous month
|
# if it fails, try arch iso form the previous month
|
||||||
if [ $? -gt 0 ]; then
|
if [ $ret -gt 0 ]; then
|
||||||
ARCH_TRAVIS_ARCH_ISO="$(date +%Y.%m -d "-1 month").01"
|
ARCH_TRAVIS_ARCH_ISO="$(date +%Y.%m -d "-1 month").01"
|
||||||
archive="archlinux-bootstrap-$ARCH_TRAVIS_ARCH_ISO-x86_64.tar.gz"
|
archive="archlinux-bootstrap-$ARCH_TRAVIS_ARCH_ISO-x86_64.tar.gz"
|
||||||
as_normal "curl -O $ARCH_TRAVIS_MIRROR/iso/$ARCH_TRAVIS_ARCH_ISO/$archive"
|
as_normal "curl -O $ARCH_TRAVIS_MIRROR/iso/$ARCH_TRAVIS_ARCH_ISO/$archive"
|
||||||
|
|
Loading…
Reference in New Issue