From 0fe18c28878b42043e715e859461db827c93df03 Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Fri, 15 Nov 2024 10:07:34 +0100 Subject: [PATCH] show contents and recreate specific/problematic directory --- EESSI-remove-software.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/EESSI-remove-software.sh b/EESSI-remove-software.sh index 2e89a9fceb..8b882b38a9 100755 --- a/EESSI-remove-software.sh +++ b/EESSI-remove-software.sh @@ -136,9 +136,14 @@ if [ $EUID -ne 0 ]; then # directory only (${app_dir}/easybuild) rm -rdfv ${app_dir} rm -rdfv ${app_module} + echo_yellow "Contents of ${app_dir}/easybuild (should not exist)" + ls -l ${app_dir}/easybuild || true # ls didn't change the result (permission denied) # ls ${app_dir}/easybuild || true + # 2nd idea: recreate some directory mkdir -p ${app_dir}/easybuild + echo_yellow "Contents of ${app_dir}/easybuild after it got recreated with 'mkdir -p' (should be empty)" + ls -l ${app_dir}/easybuild || true ## 1st remove files in depth-first order #for filepath in $(find ${app_dir} -depth -type f); do