kou commented on code in PR #49249:
URL: https://github.com/apache/arrow/pull/49249#discussion_r2814480333


##########
dev/release/02-source.sh:
##########
@@ -130,6 +130,9 @@ if [ ${SOURCE_VOTE} -gt 0 ]; then
   curl_options+=(--data "head=apache:${rc_branch}")
   curl_options+=(https://api.github.com/repos/${GITHUB_REPOSITORY}/pulls)
   verify_pr_url=$(curl "${curl_options[@]}" | jq -r ".[0].html_url")
+  # Read the checksum so we can include it in the vote thread email.
+  [[ -f "artifacts/${tarball}.sha512" ]] || { echo "Error: 
artifacts/${tarball}.sha512 must exist"; exit 1; }
+  tarball_hash=$(cat "artifacts/${tarball}.sha512" | awk '{print $1}')

Review Comment:
   It may be better that we define a variable:
   
   ```suggestion
     sha512_path="artifacts/${tarball}.sha512}
     [[ -f "${sha512_path}" ]] || { echo "Error: ${sha512_path} must exist"; 
exit 1; }
     tarball_hash=$(cat "${sha512_path}" | awk '{print $1}')
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to