We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f01b66b commit 3a39112Copy full SHA for 3a39112
scripts/update_lmod_caches.sh
@@ -41,5 +41,12 @@ for archdir in ${architectures}
41
do
42
lmod_cache_dir="${archdir}/.lmod/cache"
43
${update_lmod_system_cache_files} -d ${lmod_cache_dir} -t ${lmod_cache_dir}/timestamp ${archdir}/modules/all
44
- echo_green "Updated the Lmod cache for ${archdir}."
+ exit_code=$?
45
+ if [[ ${exit_code} -eq 0 ]]; then
46
+ echo_green "Updated the Lmod cache for ${archdir}."
47
+ ls -lrt ${lmod_cache_dir}
48
+ else
49
+ echo_red "Updating the Lmod cache failed for ${archdir}."
50
+ exit ${exit_code}
51
+ fi
52
done
0 commit comments