Skip to content

Commit ab03e42

Browse files
committed
Fix copying of the buildlogs broken by the introduction of pre-run-shell-cmd
1 parent f453fe9 commit ab03e42

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

EESSI-install-software.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,12 +412,14 @@ else
412412

413413
# copy EasyBuild log file if EasyBuild exited with an error
414414
if [ ${ec} -ne 0 ]; then
415-
eb_last_log=$(unset EB_VERBOSE; eb --last-log)
415+
eb_hooks=$EASYBUILD_HOOKS
416+
eb_last_log=$(unset EB_VERBOSE; unset EASYBUILD_HOOKS; eb --last-log)
416417
# copy to current working directory
417418
cp -a ${eb_last_log} .
418419
echo "Last EasyBuild log file copied from ${eb_last_log} to ${PWD}"
419420
# copy to build logs dir (with context added)
420421
copy_build_log "${eb_last_log}" "${build_logs_dir}"
422+
export EASYBUILD_HOOKS=$eb_hooks
421423
fi
422424

423425
$TOPDIR/check_missing_installations.sh ${easystack_file} ${pr_diff}

0 commit comments

Comments
 (0)