Skip to content

Commit e5446be

Browse files
committed
make sure that EESSI version for which build is triggered matches with location of easystack file
1 parent 8eb99ad commit e5446be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

EESSI-install-software.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,12 @@ else
358358
new_easystacks=$(echo "${changed_easystacks}" | (grep -v "/rebuilds/" || true))
359359
for easystack_file in ${rebuild_easystacks} ${new_easystacks}; do
360360

361+
# make sure that easystack file being picked up is for EESSI version that we're building for...
362+
echo "${easystack_file}" | grep -q "^easystacks/${EESSI_VERSION}/"
363+
if [ $? -ne 0 ]; then
364+
fatal_error "Easystack file ${easystack_file} is not intended for EESSI version ${EESSI_VERSION}, giving up!"
365+
fi
366+
361367
echo -e "Processing easystack file ${easystack_file}...\n\n"
362368

363369
# determine version of EasyBuild module to load based on EasyBuild version included in name of easystack file

0 commit comments

Comments
 (0)