Skip to content

Commit ecbc361

Browse files
committed
no need to do the ls on subdirs in a for loop, do them all at once
1 parent aa31e15 commit ecbc361

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

EESSI-remove-software.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ if [ $EUID -eq 0 ]; then
134134
# 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}
137-
for app_subdir in ${app_subdirs}; do
138-
ls ${app_subdir} >& /dev/null || true
139-
done
137+
ls ${app_subdirs} >& /dev/null || true
140138
done
141139
else
142140
fatal_error "Easystack file ${easystack_file} not found!"

0 commit comments

Comments
 (0)