From 8b2830b2d5d42523fe73382044de79ae5c6438c8 Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Sat, 26 Oct 2019 13:41:34 +0700 Subject: Fix sed command on macOS builds --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6637972d1..8e61cc91d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,11 @@ git: submodules: false # Use sed to replace the SSH URL with the public URL, then initialize submodules before_install: - - sed -i 's/git@github.com:/https:\/\/github.com\//' .gitmodules + - if [ $TRAVIS_OS_NAME == "linux" ]; then + sed -i '' 's/git@github.com:/https:\/\/github.com\//' .gitmodules + else + sed -i '' 's/git@github.com:/https:\/\/github.com\//' .gitmodules # macOS + fi - git submodule update --init --recursive install: - echo do nothing -- cgit v1.2.3-54-g00ecf