Skip to content

Commit

Permalink
improve handling of potentially non existing list files
Browse files Browse the repository at this point in the history
  • Loading branch information
truib committed Mar 17, 2023
1 parent 3b75f79 commit 610879e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions create_tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if [ -d ${pilot_version}/software/${os}/${cpu_arch_subdir}/modules ]; then
| grep -v '/\.wh\.' | sed -e 's/.lua$//' | awk -F'/' '{printf "%s/%s\n", $(NF-1), $NF}' | sort | uniq \
>> ${module_files_list}
fi
if [ -d ${pilot_version}/software/${os}/${cpu_arch_subdir}/software ]; then
if [ -d ${pilot_version}/software/${os}/${cpu_arch_subdir}/software -a -r ${module_files_list} ]; then
# installation directories but only those for which module files were created
for package_version in $(cat ${module_files_list}); do
echo "handling ${package_version}"
Expand All @@ -66,9 +66,9 @@ fi

# add a bit debug output
echo "wrote file list to ${files_list}"
cat ${files_list}
[ -r ${files_list} ] && cat ${files_list}
echo "wrote module file list to ${module_files_list}"
cat ${module_files_list}
[ -r ${module_files_list} ] && cat ${module_files_list}

topdir=${cvmfs_repo}/versions/

Expand Down

0 comments on commit 610879e

Please sign in to comment.