Skip to content

Commit

Permalink
Silent curl; use -f with rm instead of || true
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed Jul 9, 2024
1 parent a2d742f commit b760b96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/install_libspatialindex.bash
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ scriptloc() {
INSTALL_PREFIX=`install_prefix`
SL=`scriptloc`

rm $VERSION.zip || true
curl -LO --retry 5 --retry-max-time 120 https://github.com/libspatialindex/libspatialindex/archive/$VERSION.zip
rm -f $VERSION.zip
curl -LOs --retry 5 --retry-max-time 120 https://github.com/libspatialindex/libspatialindex/archive/${VERSION}.zip

# check the file hash
echo "${SHA256} ${VERSION}.zip" | sha256sum -c -

rm -rf "libspatialindex-${VERSION}" || true
rm -rf "libspatialindex-${VERSION}"
unzip -q $VERSION
cd libspatialindex-${VERSION}

Expand Down

0 comments on commit b760b96

Please sign in to comment.