Skip to content

Commit 58660ab

Browse files
committed
removed grep
1 parent 8ed20a9 commit 58660ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/download.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [[ "$PT_check_download" == "false" ]]; then
1616
exit 0
1717
fi
1818

19-
if ! which gpg ; then
19+
if ! which -s gpg ; then
2020
echo "gpg binary required in path for checking download. Skipping check."
2121
exit 0
2222
fi
@@ -37,8 +37,8 @@ echo "Downloading tarball signature from ${sigsource}..."
3737
curl -f -L -o "${sigpath}" "${sigsource}"
3838
echo "Downloaded tarball signature to ${sigpath}."
3939
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."
4242
else
4343
echo "Signature verification failed, please re-run the installation."
4444
exit 1

0 commit comments

Comments
 (0)