Skip to content

Commit

Permalink
Merge pull request #354 from trz42/fix_determining_changed_files
Browse files Browse the repository at this point in the history
{2023.06} get changed/new files from PR.diff file
  • Loading branch information
boegel authored Oct 5, 2023
2 parents 710cffa + 19dc39c commit e77d358
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions EESSI-pilot-install-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit e77d358

Please sign in to comment.