File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ if [[ "$PT_check_download" == "false" ]]; then
16
16
exit 0
17
17
fi
18
18
19
- if ! which gpg ; then
19
+ if ! which -s gpg ; then
20
20
echo " gpg binary required in path for checking download. Skipping check."
21
21
exit 0
22
22
fi
@@ -37,8 +37,8 @@ echo "Downloading tarball signature from ${sigsource}..."
37
37
curl -f -L -o " ${sigpath} " " ${sigsource} "
38
38
echo " Downloaded tarball signature to ${sigpath} ."
39
39
echo " Checking tarball signature at ${sigpath} ..."
40
- if gpg --verify " ${sigpath} " " ${PT_path} " | grep " Good signature " ; then
41
- echo " Signature verification suceeded ."
40
+ if gpg --verify " ${sigpath} " " ${PT_path} " ; then
41
+ echo " Signature verification succeeded ."
42
42
else
43
43
echo " Signature verification failed, please re-run the installation."
44
44
exit 1
You can’t perform that action at this time.
0 commit comments