Skip to content

Commit ce7f502

Browse files
committed
add ' || true' to grep commands
1 parent 19aec72 commit ce7f502

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

create_tarball.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ module_files_list=${tmpdir}/module_files.list.txt
4949
if [ -d ${eessi_version}/software/${os}/${cpu_arch_subdir}/.lmod ]; then
5050
# include Lmod cache and configuration file (lmodrc.lua),
5151
# skip whiteout files and backup copies of Lmod cache (spiderT.old.*)
52-
find ${eessi_version}/software/${os}/${cpu_arch_subdir}/.lmod -type f | egrep -v '/\.wh\.|spiderT.old' >> ${files_list}
52+
find ${eessi_version}/software/${os}/${cpu_arch_subdir}/.lmod -type f | egrep -v '/\.wh\.|spiderT.old' >> ${files_list} || true # Make sure we don't exit because of set -e if grep doesn't return a match
5353
fi
5454

5555
# include scripts that were copied by install_scripts.sh, which we want to ship in EESSI repository
5656
if [ -d ${eessi_version}/scripts ]; then
57-
find ${eessi_version}/scripts -type f | grep -v '/\.wh\.' >> ${files_list}
57+
find ${eessi_version}/scripts -type f | grep -v '/\.wh\.' >> ${files_list} || true # Make sure we don't exit because of set -e if grep doesn't return a match
5858
fi
5959

6060
# also include init, which is also copied by install_scripts.sh
6161
if [ -d ${eessi_version}/init ]; then
62-
find ${eessi_version}/init -type f | grep -v '/\.wh\.' >> ${files_list}
62+
find ${eessi_version}/init -type f | grep -v '/\.wh\.' >> ${files_list} || true # Make sure we don't exit because of set -e if grep doesn't return a match
6363
fi
6464

6565
# consider both CPU-only and accelerator subdirectories

0 commit comments

Comments
 (0)