Skip to content

Commit

Permalink
add a little debug info to verify if package will be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Nov 23, 2024
1 parent 4218d01 commit 9322c19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions EESSI-remove-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ if [ $EUID -eq 0 ]; then
# we need to remove existing installation directories first,
# so let's figure out which modules have to be rebuilt by doing a dry-run and grepping "someapp/someversion" for the relevant lines (with [R])
# * [R] $CFGS/s/someapp/someapp-someversion.eb (module: someapp/someversion)
eb --allow-use-as-root-and-accept-consequences --dry-run-short --rebuild --easystack ${easystack_file}
rebuild_apps=$(eb --allow-use-as-root-and-accept-consequences --dry-run-short --rebuild --easystack ${easystack_file} | grep "^ \* \[R\]" | grep -o "module: .*[^)]" | awk '{print $2}')
for app in ${rebuild_apps}; do
# Returns e.g. /cvmfs/software.eessi.io/versions/2023.06/software/linux/x86_64/amd/zen2/modules/all:
Expand Down

0 comments on commit 9322c19

Please sign in to comment.