Skip to content
Snippets Groups Projects
Commit 82eeadd1 authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Fix build_icon.sh again.

parent dabcb3e9
No related branches found
No related tags found
1 merge request!4Switching to the advanced configuration method and fixing spack build.
...@@ -19,7 +19,9 @@ if [ ! -z "$SPACK_BUILD_ICON" ]; then ...@@ -19,7 +19,9 @@ if [ ! -z "$SPACK_BUILD_ICON" ]; then
echo "Installing ICON with spack!" echo "Installing ICON with spack!"
echo "cmd=$SPACK_BUILD_ICON" echo "cmd=$SPACK_BUILD_ICON"
# In case the autosubmit repository with the icon-nwp receipt doesn't exist, add it # In case the autosubmit repository with the icon-nwp receipt doesn't exist, add it
if [ $(spack repo list | grep autosubmit-icon-repository -q) ]; then if [[ $(spack repo list | grep "${WORKDIR}/proj/spack_repo") ]]; then
echo "icon spack repo was already added to repo list"
else
spack repo add ${WORKDIR}/proj/spack_repo spack repo add ${WORKDIR}/proj/spack_repo
fi fi
spack install $SPACK_BUILD_ICON spack install $SPACK_BUILD_ICON
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment