From 6d2fdb4ee150218dee5ac8105b9052497a79f8af Mon Sep 17 00:00:00 2001 From: Ben Westgate Date: Tue, 11 Jun 2024 02:05:02 -0500 Subject: [PATCH] Fix failure if more than one Version was present --- bails/.local/bin/install-sparrow | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bails/.local/bin/install-sparrow b/bails/.local/bin/install-sparrow index 9397901..a6b51fa 100755 --- a/bails/.local/bin/install-sparrow +++ b/bails/.local/bin/install-sparrow @@ -39,10 +39,12 @@ wget --continue --no-directories --span-hosts --recursive --level=1 \ --reject=sparrow-server* --accept=manifest.txt{,.asc},amd64.deb \ --domains={sparrowwallet,github}.com $SPARROW_DOWNLOAD_URL wait -f $keys -gpg --verify ./*manifest.txt.asc || exit 1 #TODO check for the fingerprint -sha256sum --check ./*manifest.txt --ignore-missing || exit 1 +for version in ./*manifest.txt; do + gpg --verify "$version".asc || exit 1 + deb=$(sha256sum --check "$version" --ignore-missing) && echo "$deb" || exit 1 +done rm -rf {DEBIAN,opt} -dpkg-deb -vR ./*amd64.deb . +dpkg-deb -vR "${deb::-4}" . || exit 1 find . -type f -exec sed -i s,/opt/sparrow,$DOTFILES/.local,g {} \; find . -type f -exec sed -i "s,bin/Sparrow,bin/wrapped Sparrow -d $PERSISTENT/.sparrow,g" {} \; sed '$ s/$/\nSingleMainWindow=true/' opt/sparrow/lib/sparrow-Sparrow.desktop > $XDG_DATA_HOME/applications/sparrow-Sparrow.desktop