Skip to content

Commit

Permalink
use previous workaround for permission denied issue, revert EESSI#907
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Feb 16, 2025
1 parent cfcc072 commit 95bc014
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions EESSI-remove-software.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,12 @@ if [ $EUID -eq 0 ]; then
# permission issues when reinstalling the application (see https://github.com/EESSI/software-layer/issues/556)
echo_yellow "Recreating an empty ${app_dir}..."
mkdir -p ${app_dir}
# these subdirs don't (and shouldn't) exist, but we need to do the ls anyway as a workaround,
# so redirect to /dev/null and ignore the exit code
ls ${app_subdirs} >& /dev/null || true
for app_subdir in ${app_subdirs}; do
mkdir -p ${app_subdir}
done
## these subdirs don't (and shouldn't) exist, but we need to do the ls anyway as a workaround,
## so redirect to /dev/null and ignore the exit code
#ls ${app_subdirs} >& /dev/null || true
done
else
fatal_error "Easystack file ${easystack_file} not found!"
Expand Down

0 comments on commit 95bc014

Please sign in to comment.