Skip to content

Commit

Permalink
get changed/new files from PR.diff file
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Oct 4, 2023
1 parent 710cffa commit 19dc39c
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 19dc39c

Please sign in to comment.