fix(bin): close #165

This file may already exist. It's unclear why this happens though.
This commit is contained in:
Adam Hawkins 2020-08-21 09:37:06 -10:00
parent cd8dc32e82
commit 091309ede0
No known key found for this signature in database
GPG Key ID: 627EA6D4272937AF

View File

@ -198,6 +198,7 @@ download_and_verify_checksums() {
fi
## Mitigates: https://github.com/nodejs/node/issues/6821
local authentic_checksum_file="$tmp_download_dir/authentic_SHASUMS256.txt"
rm -f $authentic_checksum_file
$gnugp_verify_command_name --no-default-keyring --keyring "${ASDF_NODEJS_KEYRING}" --output "${authentic_checksum_file}" --decrypt "$signed_checksum_file" 2>/dev/null ||
$gnugp_verify_command_name --output "${authentic_checksum_file}" --decrypt "$signed_checksum_file" 2>/dev/null
)