Skip to content

Commit

Permalink
fix use of script argument
Browse files Browse the repository at this point in the history
  • Loading branch information
white238 committed Dec 6, 2023
1 parent 8990230 commit 3c4e03e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/build-with-spack.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
set -euo pipefail
set -x

export ARG_SPEC=$1

pushd /opt

git clone https://github.com/spack/spack spack
Expand Down Expand Up @@ -35,9 +38,9 @@ spack mirror add develop https://binaries.spack.io/releases/develop
# Move install tree outside of spack directory so spack repo can be removed after
spack config add "config:install_tree:root:'/opt'"
# Concretize spec
spack spec --reuse $0
spack spec --reuse $ARG_SPEC
# Add spec to environment
spack add $0
spack add $ARG_SPEC
spack buildcache keys --install --trust
spack install --fail-fast

Expand Down

0 comments on commit 3c4e03e

Please sign in to comment.