From c2d199d0bb1ea0e67ce36bc21b9d8c91f94a5b82 Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Wed, 4 Oct 2023 23:08:04 +0200 Subject: [PATCH] use original approach to determine changed/new easystack files --- EESSI-pilot-install-software.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/EESSI-pilot-install-software.sh b/EESSI-pilot-install-software.sh index 4f473eb82f..c6c51e7abc 100755 --- a/EESSI-pilot-install-software.sh +++ b/EESSI-pilot-install-software.sh @@ -186,8 +186,11 @@ else echo_green ">> MODULEPATH set up: ${MODULEPATH}" fi -# use 'git diff' to determine which easystack files were changed -for easystack_file in $(git diff --name-only | grep '^eessi.*yml$'); do +# assume there's only one diff file that corresponds to the PR patch file +pr_diff=$(ls [0-9]*.diff | head -1) + +# use PR patch file to determine in which easystack files stuff was added +for easystack_file in $(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep '^eessi.*yml$'); do echo -e "Processing easystack file ${easystack_file}...\n\n"