Skip to content
Snippets Groups Projects
Commit 61c866cb authored by Fabian.Jakub's avatar Fabian.Jakub
Browse files

dont use let to count upstream repos, because let return error code

parent b42ec653
No related branches found
No related tags found
No related merge requests found
...@@ -9,10 +9,10 @@ function _install_spack() { ...@@ -9,10 +9,10 @@ function _install_spack() {
if [ ! -z "${SPACK_UPSTREAMS}" ]; then if [ ! -z "${SPACK_UPSTREAMS}" ]; then
UPSTREAMS_CONFIG=${SPACK_ROOT}/etc/spack/upstreams.yaml UPSTREAMS_CONFIG=${SPACK_ROOT}/etc/spack/upstreams.yaml
echo "upstreams:" > $UPSTREAMS_CONFIG echo "upstreams:" > $UPSTREAMS_CONFIG
let i=0 i=0
for UP in ${SPACK_UPSTREAMS}; do for UP in ${SPACK_UPSTREAMS}; do
echo "Adding upstream repo to config $UPSTREAMS_CONFIG <= $UP" echo "Adding upstream repo to config $UPSTREAMS_CONFIG <= $UP"
let i=$((i+1)) i=$((i+1))
cat << EOF >> $UPSTREAMS_CONFIG cat << EOF >> $UPSTREAMS_CONFIG
spack-instance-$i: spack-instance-$i:
install_tree: $UP/spack/opt/spack install_tree: $UP/spack/opt/spack
......
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