Skip to content

Commit

Permalink
Add quotes suggested by shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Jul 31, 2024
1 parent 069a32d commit 9ced2d7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions maintainer/pineappl-ci/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,28 @@ pdf_sets=(
)

apt update
apt install -y ${pkgs[@]}
apt install -y "${pkgs[@]}"

# install rustup
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain none -y

for version in ${RUST_V}; do
# the last command will be the default
rustup install ${version} --profile minimal
rustup default ${version}
rustup install "${version}" --profile minimal
rustup default "${version}"
# install LLVM tools needed for code coverage
rustup component add llvm-tools
done

# install cargo-c needed for the CAPI
cargo install --locked cargo-c --version ${CARGOC_V}
cargo install --locked cargo-c --version "${CARGOC_V}"

# remove files generated by cargo
rm -r /usr/local/cargo/registry

# install LHAPDF
curl -L "https://lhapdf.hepforge.org/downloads/?f=LHAPDF-${LHAPDF_V}.tar.gz" | tar xzf -
cd LHAPDF-${LHAPDF_V}
cd "LHAPDF-${LHAPDF_V}"
./configure --disable-python
make -j V=1
make install
Expand All @@ -61,7 +61,7 @@ curl "https://data.nnpdf.science/pineappl/pdfs/240608-tr-pol-nlo-100.tar.gz" | t

# install zlib; we need to link against it statically
curl "https://www.zlib.net/zlib-${ZLIB_V}.tar.gz" | tar xzf -
cd zlib-${ZLIB_V}
cd "zlib-${ZLIB_V}"
./configure --prefix=/usr/local
make -j
make install
Expand All @@ -70,18 +70,18 @@ cd ..

# install APPLgrid
curl -L "https://applgrid.hepforge.org/downloads?f=applgrid-${APPLGRID_V}.tgz" | tar xzf -
cd applgrid-${APPLGRID_V}
cd "applgrid-${APPLGRID_V}"
./configure --without-root
make -j
make install
ldconfig
mkdir -p ${APPL_IGRID_DIR}
cp src/*.h ${APPL_IGRID_DIR}
mkdir -p "${APPL_IGRID_DIR}"
cp src/*.h "${APPL_IGRID_DIR}"
cd ..

# install fastNLO
curl "https://fastnlo.hepforge.org/code/v25/fastnlo_toolkit-${FASTNLO_V}.tar.gz" | tar xzf -
cd fastnlo_toolkit-${FASTNLO_V}
cd "fastnlo_toolkit-${FASTNLO_V}"
./configure --prefix=/usr/local/
make -j V=1
make install
Expand Down

0 comments on commit 9ced2d7

Please sign in to comment.