summaryrefslogtreecommitdiff
path: root/standalone
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-10-06 16:53:24 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-10-06 16:53:24 -0400
commitc9f1a1261d5c6fb88969dce2a360e9ae3f0dc7d1 (patch)
tree72e9b090fb8faf4898c38690fcd8279481676974 /standalone
parent8d11dda46e337e9d371167ea3503488cb761fa25 (diff)
sed out the filename from sha1sum output
Diffstat (limited to 'standalone')
-rwxr-xr-xstandalone/windows/build.sh4
1 files changed, 2 insertions, 2 deletions
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