Skip to content

Commit c4dc1ab

Browse files
committed
fix
1 parent d80dcb3 commit c4dc1ab

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/base/.devcontainer/scripts/install_aws_sam_cli.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,8 @@ install() {
129129
curl -fsSL "${scriptUrl}" -o "${scriptZipFile}"
130130
curl -fsSL "${scriptUrl}.sig" -o "${scriptSigFile}"
131131

132-
verify_aws_sam_cli_gpg_signature "$scriptZipFile" "$scriptSigFile"
133-
if (( $? > 0 )); then
134-
echo "Could not verify GPG signature of AWS CLI install script. Make sure you provided a valid version."
132+
if ! verify_aws_sam_cli_gpg_signature "$scriptZipFile" "$scriptSigFile"; then
133+
echo "Could not verify GPG signature of AWS SAM CLI install script. Make sure you provided a valid version."
135134
exit 1
136135
fi
137136
echo "GPG signature of AWS SAM CLI install script verified successfully. Installing..."

0 commit comments

Comments
 (0)