From 1091ab75ac474fb8e74c75cd5d93c8fb7f437b81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bob=20Dr=C3=B6ge?= Date: Tue, 15 Oct 2024 14:27:27 +0200 Subject: [PATCH] only find and remove files, and then remove the entire install dir --- EESSI-remove-software.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EESSI-remove-software.sh b/EESSI-remove-software.sh index 1d38092004..fbd2760596 100755 --- a/EESSI-remove-software.sh +++ b/EESSI-remove-software.sh @@ -127,7 +127,8 @@ if [ $EUID -eq 0 ]; then app_dir=${app_installprefix}/software/${app} app_module=${app_installprefix}/modules/all/${app}.lua echo_yellow "Removing ${app_dir} and ${app_module}..." - find ${app_dir} -exec rm -rf {} \; + find ${app_dir} -type f -exec rm -f {} \; + rm -rf ${app_dir} rm -rf ${app_module} done else