Skip to content

Commit 8ed20a9

Browse files
committed
bugfixing condition; code readability
1 parent a35ab79 commit 8ed20a9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/download.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ else
1212
curl -f -L -o "$PT_path" "$PT_source"
1313
fi
1414

15-
if [[ "$PT_check_download" != "true" ]]; then
15+
if [[ "$PT_check_download" == "false" ]]; then
1616
exit 0
1717
fi
1818

@@ -38,8 +38,8 @@ curl -f -L -o "${sigpath}" "${sigsource}"
3838
echo "Downloaded tarball signature to ${sigpath}."
3939
echo "Checking tarball signature at ${sigpath}..."
4040
if gpg --verify "${sigpath}" "${PT_path}" | grep "Good signature" ; then
41+
echo "Signature verification suceeded."
42+
else
4143
echo "Signature verification failed, please re-run the installation."
4244
exit 1
43-
else
44-
echo "Signature verification suceeded."
4545
fi

0 commit comments

Comments
 (0)