Skip to content

Commit

Permalink
Relax regular expression searching for easystacks
Browse files Browse the repository at this point in the history
  • Loading branch information
Neves-P authored Oct 2, 2024
1 parent e709e6f commit 4f01309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EESSI-remove-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pr_diff=$(ls [0-9]*.diff | head -1)

# if this script is run as root, use PR patch file to determine if software needs to be removed first
if [ $EUID -eq 0 ]; then
changed_easystacks_rebuilds=$(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep '^easystacks/.*yml$' | egrep -v 'known-issues|missing' | grep "/rebuilds/")
changed_easystacks_rebuilds=$(cat ${pr_diff} | grep '^+++' | cut -f2 -d' ' | sed 's@^[a-z]/@@g' | grep 'easystacks/.*yml$' | egrep -v 'known-issues|missing' | grep "/rebuilds/")
if [ -z ${changed_easystacks_rebuilds} ]; then
echo "No software needs to be removed."
else
Expand Down

0 comments on commit 4f01309

Please sign in to comment.