You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ -d${eessi_version}/software/${os}/${cpu_arch_subdir}/.lmod ];then
50
50
# include Lmod cache and configuration file (lmodrc.lua),
51
-
# 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}||true# Make sure we don't exit because of set -e if grep doesn't return a match
51
+
# skip whiteout files (.wh.*) and backup copies of Lmod cache (spiderT.old.*)
52
+
find ${eessi_version}/software/${os}/${cpu_arch_subdir}/.lmod -type f \(\! -name 'spiderT.old.*' -a \! -name '.wh.*'\)>>${files_list}
53
53
fi
54
54
55
55
# include scripts that were copied by install_scripts.sh, which we want to ship in EESSI repository
56
56
if [ -d${eessi_version}/scripts ];then
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
57
+
find ${eessi_version}/scripts -type f \! -name '.wh.*'>>${files_list}
58
58
fi
59
59
60
60
# also include init, which is also copied by install_scripts.sh
61
61
if [ -d${eessi_version}/init ];then
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
62
+
find ${eessi_version}/init -type f \! -name '.wh.*'>>${files_list}
63
63
fi
64
64
65
65
# consider both CPU-only and accelerator subdirectories
if [ -d${eessi_version}/software/${os}/${subdir}/modules ];then
69
69
# module files
70
-
find ${eessi_version}/software/${os}/${subdir}/modules -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
70
+
find ${eessi_version}/software/${os}/${subdir}/modules -type f \! -name '.wh.*'>>${files_list}
71
71
# module symlinks
72
-
find ${eessi_version}/software/${os}/${subdir}/modules -type l | grep -v '/\.wh\.'>>${files_list}||true# Make sure we don't exit because of set -e if grep doesn't return a match
72
+
find ${eessi_version}/software/${os}/${subdir}/modules -type l \! -name '.wh.*'>>${files_list}
73
73
# module files and symlinks
74
-
find ${eessi_version}/software/${os}/${subdir}/modules/all -type f -o -type l \
75
-
| grep -v '/\.wh\.'| grep -v '/\.modulerc\.lua'| sed -e 's/.lua$//'| sed -e 's@.*/modules/all/@@g'| sort -u \
74
+
find ${eessi_version}/software/${os}/${subdir}/modules/all -type f -o -type l \! -name '.wh.*' \
75
+
| grep -v '/\.modulerc\.lua'| sed -e 's/.lua$//'| sed -e 's@.*/modules/all/@@g'| sort -u \
0 commit comments