File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,12 +130,12 @@ if [ $EUID -eq 0 ]; then
130130 echo_yellow " Removing ${app_dir} and ${app_module} ..."
131131 rm -rf ${app_dir}
132132 rm -rf ${app_module}
133- # recreate the installation directories and first-level subdirectories to work around permission denied
134- # issues when rebuilding the package (see https://github.com/EESSI/software-layer/issues/556)
133+ # recreate the installation directory and do an ls on the first-level subdirectories to work around
134+ # permission denied issues when rebuilding the package (see https://github.com/EESSI/software-layer/issues/556)
135135 echo_yellow " Recreating an empty ${app_dir} ..."
136136 mkdir -p ${app_dir}
137137 for app_subdir in ${app_subdirs} ; do
138- mkdir -p ${app_subdir}
138+ ls ${app_subdir} >& /dev/null || true
139139 done
140140 done
141141 else
You can’t perform that action at this time.
0 commit comments