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
Copy file name to clipboardexpand all lines: containers/Dockerfile.base-spack
+3-1
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,9 @@ RUN git clone https://github.com/ACCESS-NRI/spack-packages.git ${SPACK_PACKAGES
88
88
# Install ACCESS-NRI's spack-config repo
89
89
RUN git clone https://github.com/ACCESS-NRI/spack-config.git ${SPACK_CONFIG_REPO_ROOT} --branch ${SPACK_CONFIG_REPO_VERSION}
90
90
91
-
RUN ln -s -r -v ${SPACK_CONFIG_DIR}/* ${SPACK_ROOT}/etc/spack/
91
+
# Exit with ENOENT 2 "No such file or directory", if the directory does not
92
+
# exist
93
+
RUN if [ -d "${SPACK_CONFIG_DIR}" ]; then ln -s -r -v ${SPACK_CONFIG_DIR}/* ${SPACK_ROOT}/etc/spack/; else echo "${SPACK_CONFIG_DIR} does not exist!"; exit 2; fi
92
94
93
95
# Enables setting Spack setup type via SHELL command
0 commit comments