From 64b9d84bfd0da0305a1df9b97ffbdc3898f59e62 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 9 Mar 2016 22:34:27 +0100 Subject: [PATCH] When grepping something starting with a dash, remember to use -e Reviewed-by: Viktor Dukhovni --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index ce7e208dbe..0865817ae3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -60,7 +60,7 @@ matrix: before_script: - sh .travis-create-release.sh $TRAVIS_OS_NAME - tar -xvzf _srcdist.tar.gz - - if echo "$CONFIG_OPTS" | grep "--classic" >/dev/null; then + - if echo "$CONFIG_OPTS" | grep -e "--classic" >/dev/null; then srcdir=.; cd _srcdist; else @@ -83,7 +83,7 @@ before_script: - cd .. script: - - if echo "$CONFIG_OPTS" | grep "--classic" >/dev/null; then + - if echo "$CONFIG_OPTS" | grep -e "--classic" >/dev/null; then cd _srcdist; else cd _build; -- 2.25.1