Skip to content

Commit 96494f5

Browse files
author
Caspar van Leeuwen
committed
Make sure the grep command always returns success
1 parent 7294adb commit 96494f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EESSI-install-software.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ fi
370370
# use PR patch file to determine in which easystack files stuff was added
371371
# Note that we exclude the scripts/gpu_support/ dir, since those are not meant to be built in the
372372
# software-layer, but they are helper easystacks for installing e.g. CUDA in host_injections
373-
changed_easystacks=$(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep 'easystacks/.*yml$' | egrep -v 'known-issues|missing' | grep -v "scripts/gpu_support/")
373+
changed_easystacks=$(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep 'easystacks/.*yml$' | egrep -v 'known-issues|missing' | (grep -v "scripts/gpu_support/" || true))
374374
if [ -z "${changed_easystacks}" ]; then
375375
echo "No missing installations, party time!" # Ensure the bot report success, as there was nothing to be build here
376376
else

0 commit comments

Comments
 (0)