Travis add variable check

This commit is contained in:
jgromes 2019-07-31 10:39:05 +02:00
parent cf5b098c0c
commit 4f2382ad8c

View file

@ -44,7 +44,7 @@ script:
- |
for example in $(find $PWD/examples -name '*.ino' | sort); do
# check whether to skip this sketch
if [[ ${example} =~ $SKIP_PAT ]]; then
if [ ! -z "$SKIP_PAT" ] && [[ ${example} =~ $SKIP_PAT ]]; then
# skip sketch
echo -e "\n\033[1;33mSkipped ${example##*/} (matched with $SKIP_PAT)\033[0m";
else