From dd38d01a11fadac4fcb06bc5ce0e9346e26c7ce9 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 6 Oct 2015 16:53:24 -0400 Subject: [PATCH] sed out the filename from sha1sum output --- standalone/windows/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/standalone/windows/build.sh b/standalone/windows/build.sh index a0dd6644d9..c842907c86 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