Skip to content

Commit

Permalink
use original approach to determine changed/new easystack files
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Oct 4, 2023
1 parent a733f95 commit c2d199d
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 c2d199d

Please sign in to comment.