From c9f1a1261d5c6fb88969dce2a360e9ae3f0dc7d1 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 6 Oct 2015 16:53:24 -0400 Subject: sed out the filename from sha1sum output --- standalone/windows/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'standalone/windows') diff --git a/standalone/windows/build.sh b/standalone/windows/build.sh index a0dd6644d..c842907c8 100755 --- a/standalone/windows/build.sh +++ b/standalone/windows/build.sh @@ -65,11 +65,11 @@ fi getextra () { extrap="$1" extrasha="$2" - curextrasha="$(withcyg sha1sum $extrap)" + curextrasha="$(withcyg sha1sum $extrap | sed 's/ .*//')" if [ ! -e "$extrap" ] || [ "$curextrasha" != "$extrasha" ]; then rm -f "$extrap" || true withcyg wget https://downloads.kitenet.net/git-annex/windows/assets/$extrap - curextrasha="$(withcyg sha1sum $extrap)" + curextrasha="$(withcyg sha1sum $extrap | sed 's/ .*//')" if [ "$curextrasha" != "$extrasha" ]; then rm -f "$extrap" echo "CHECKSUM FAILURE" >&2 -- cgit v1.2.3