summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8ad53a145e1b..bbe6b27d0803 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: MadPhysicist <jfoxrabinovitz at gmail dot com>
pkgname=panoply
-pkgver=$(curl https://www.giss.nasa.gov/tools/panoply/download/ | sed -n 's/The current version of Panoply is \([[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\).*/\1/p')
+pkgver="$(curl https://www.giss.nasa.gov/tools/panoply/download/ 2>/dev/null | sed -n 's/The current version of Panoply is \([[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+\).*/\1/p')"
pkgrel=1
pkgdesc='NetCDF, HDF and GRIB Data Viewer by NASA GISS'
arch=('any')
@@ -29,7 +29,8 @@ source=("http://www.giss.nasa.gov/tools/panoply/download/PanoplyJ-${pkgver}.zip"
'panoply128.png'
'panoply.desktop')
noextract=()
-sha1sums=($(curl https://www.giss.nasa.gov/tools/panoply/download/Panoply-${pkgver}.sha1.txt | grep 'PanoplyJ.*.zip' | grep -o '^[^ ]*')
+_sha1="$(curl https://www.giss.nasa.gov/tools/panoply/download/Panoply-${pkgver}.sha1.txt 2>/dev/null | grep 'PanoplyJ.*.zip' | grep -o '^[^ ]*')"
+sha1sums=("${_sha1}"
'a83855747414873269e21aaff1a53d13ab5de304'
'707208d062922b5426303238870e0dd269257697'
'97c70755c7d87217556de5b2f1012b3be0d375fb'