Skip to content
Snippets Groups Projects
Commit a17246fe authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: test -s /tmp/duplicates.txt inside if

parent 3db9d44b
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !994. Comments created here will be created in the context of that merge request.
...@@ -211,12 +211,14 @@ set -e ...@@ -211,12 +211,14 @@ set -e
make --jobs ${jobs} --keep-going --directory /opt/spack-environment \ make --jobs ${jobs} --keep-going --directory /opt/spack-environment \
SPACK_ENV=${SPACK_ENV} SPACK_INSTALL_FLAGS="--use-buildcache only" SPACK_ENV=${SPACK_ENV} SPACK_INSTALL_FLAGS="--use-buildcache only"
spack gc --yes-to-all spack gc --yes-to-all
spack find --long --no-groups
spack find --long --no-groups \ spack find --long --no-groups \
| sed -e '1,/Installed packages/d;s/\([^@]*\).*/\1/g' \ | sed -e '1,/Installed packages/d;s/\([^@]*\).*/\1/g' \
| uniq -D -f1 | grep -v -w -e "\(epic\|py-pip\|py-cython\)" \ | uniq -D -f1 | grep -v -w -e "\(epic\|py-pip\|py-cython\)" \
| tee /tmp/duplicates.txt | tee /tmp/duplicates.txt
test -s /tmp/duplicates.txt && ( cat /tmp/duplicates.txt | while read hash spec ; do spack spec --long /${hash} ; done ) && exit 1 if [ -s /tmp/duplicates.txt ] ; then
cat /tmp/duplicates.txt | while read hash spec ; do spack spec --long /${hash} ; done
exit 1
fi
EOF EOF
## Create views at /opt/local and /opt/detector ## Create views at /opt/local and /opt/detector
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment