Skip to content

Commit 1fa8476

Browse files
committed
get rid of one more grep command
1 parent b8c2384 commit 1fa8476

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

create_tarball.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ for subdir in ${cpu_arch_subdir} ${cpu_arch_subdir}/accel/${accel_subdir}; do
8585
# installation directories), the procedure will likely not work.
8686
for package_version in $(cat ${module_files_list}); do
8787
echo "handling ${package_version}"
88-
ls -d ${eessi_version}/software/${os}/${subdir}/software/${package_version} \
89-
| grep -v '/\.wh\.' >> ${files_list} || true # Make sure we don't exit because of set -e if grep doesn't return a match
88+
find ${eessi_version}/software/${os}/${subdir}/software/${package_version} -maxdepth 0 -type d \! -name '.wh.*' >> ${files_list}
9089
done
9190
fi
9291
done

0 commit comments

Comments
 (0)