richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
ff6046
From a7f87d13f6f7dd92e1f1f7617df531fa34c70b6d Mon Sep 17 00:00:00 2001
ff6046
From: Frantisek Sumsal <fsumsal@redhat.com>
ff6046
Date: Tue, 15 Jan 2019 14:35:27 +0100
ff6046
Subject: [PATCH] travis: fix syntax error in .travis.yml
ff6046
ff6046
(cherry picked from commit 7f9d44f527ea214347f7d3b3b067f84df53feed7)
ff6046
---
ff6046
 .travis.yml | 3 +--
ff6046
 1 file changed, 1 insertion(+), 2 deletions(-)
ff6046
ff6046
diff --git a/.travis.yml b/.travis.yml
ff6046
index 1c4e6f9728..c5c9c345a9 100644
ff6046
--- a/.travis.yml
ff6046
+++ b/.travis.yml
ff6046
@@ -19,8 +19,7 @@ jobs:
ff6046
               - sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
ff6046
               - docker --version
ff6046
           install:
ff6046
-              - RHEL_VERSION="rhel7"
ff6046
-              - [ -f meson.build ] && RHEL_VERSION="rhel8"
ff6046
+              - if [ -f meson.build ]; then RHEL_VERSION=rhel8; else RHEL_VERSION=rhel7; fi
ff6046
               - $CI_ROOT/travis-centos-${RHEL_VERSION}.sh SETUP
ff6046
           script:
ff6046
               - set -e