Skip to content

Commit

Permalink
Update contrib/verifybinaries/verify.sh
Browse files Browse the repository at this point in the history
Co-authored-by: UdjinM6 <[email protected]>
  • Loading branch information
PastaPastaPasta and UdjinM6 authored Jan 16, 2024
1 parent 4c5f651 commit d6e3e6c
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions contrib/verifybinaries/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -149,25 +149,25 @@ for file in $FILES
do
echo "Downloading $file"
wget --quiet -N "$HOST1$BASEDIR$file"
wget --quiet -N "$HOST1$BASEDIR$file.asc"

GPGOUT=$(gpg --verify "$file.asc" 2>&1)
RET="$?"
if [ $RET -ne 0 ]; then
if [ $RET -eq 1 ]; then
#and notify the user if it's bad
echo "Bad signature."
elif [ $RET -eq 2 ]; then
#or if a gpg error has occurred
echo "gpg error. Do you have the Dash Core binary release signing key installed?"
fi

echo "gpg output:"
# shellcheck disable=SC2001
echo "$GPGOUT"|sed 's/^/\t/g'
clean_up $SIGNATUREFILENAME $SIGNATUREFILENAME.2 $TMPFILE
exit "$RET"
fi
wget --quiet -N "$HOST1$BASEDIR$file.asc"

GPGOUT=$(gpg --verify "$file.asc" 2>&1)
RET="$?"
if [ $RET -ne 0 ]; then
if [ $RET -eq 1 ]; then
#and notify the user if it's bad
echo "Bad signature."
elif [ $RET -eq 2 ]; then
#or if a gpg error has occurred
echo "gpg error. Do you have the Dash Core binary release signing key installed?"
fi

echo "gpg output:"
# shellcheck disable=SC2001
echo "$GPGOUT"|sed 's/^/\t/g'
clean_up $SIGNATUREFILENAME $SIGNATUREFILENAME.2 $TMPFILE
exit "$RET"
fi

done

Expand Down

0 comments on commit d6e3e6c

Please sign in to comment.