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.
This commit is contained in:
Torsten Bögershausen
2020-05-19 19:42:54 +02:00
parent cafd96b0e9
commit ae2935c4fd
+2 -2
View File
@@ -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 || :