From ae2935c4fd0d21ac91d4e0e1de66a5252c59d647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20B=C3=B6gershausen?= Date: Tue, 19 May 2020 19:42:54 +0200 Subject: [PATCH] travis/post-prepare.sh: Ignore return code of grep When grepping for SUPPORT in the different files, grep may fail, because "SUPPORT" is not present. A failing grep will cause travis to fail. Solution: Ignore the exit code of grep. --- .ci-local/travis/post-prepare.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci-local/travis/post-prepare.sh b/.ci-local/travis/post-prepare.sh index c6508839..1a9ccec1 100755 --- a/.ci-local/travis/post-prepare.sh +++ b/.ci-local/travis/post-prepare.sh @@ -24,10 +24,10 @@ pwd sed -i -e "s|^\(SUPPORT=.*\)$|#\1|g" ./configure/RELEASE # echo -e "${ANSI_BLUE}Updated motor/configure/RELEASE${ANSI_RESET}" -grep SUPPORT ./configure/RELEASE +grep SUPPORT ./configure/RELEASE || : # Comment out SUPPORT from motorOms's RELEASE file sed -i -e "s|^\(SUPPORT=.*\)$|#\1|g" ./modules/motorOms/configure/RELEASE # echo -e "${ANSI_BLUE}Updated motor/modules/motorOms/configure/RELEASE${ANSI_RESET}" -grep SUPPORT ./modules/motorOms/configure/RELEASE +grep SUPPORT ./modules/motorOms/configure/RELEASE || :