mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
tools: fix release script sign function
PR-URL: https://github.com/nodejs/node/pull/36556 Refs: https://github.com/nodejs/node/pull/36540 Reviewed-By: Beth Griggs <bgriggs@redhat.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
1 parent
b5fdb9e65a
commit
6c25870073
1 file changed
+5
-4
+5
-4
@@ -103,9 +103,9 @@ sign() {
|
||||
# shellcheck disable=SC2086,SC2029
|
||||
shapath=$(ssh ${customsshkey} "${webuser}@${webhost}" $signcmd nodejs $1)
|
||||
|
||||
echo "${shapath}" | grep -q '^/.*/SHASUMS256.txt$' || \
|
||||
echo 'Error: No SHASUMS file returned by sign!' \
|
||||
exit 1
|
||||
echo "${shapath}" | grep -q '^/.*/SHASUMS256.txt$' || (\
|
||||
echo 'Error: No SHASUMS file returned by sign!' &&\
|
||||
exit 1)
|
||||
|
||||
echo ""
|
||||
echo "# Signing SHASUMS for $1..."
|
||||
@@ -141,7 +141,8 @@ sign() {
|
||||
fi
|
||||
|
||||
if [ "X${yorn}" = "Xy" ]; then
|
||||
scp "${customsshkey}" "${tmpdir}/${shafile}" "${tmpdir}/${shafile}.asc" "${tmpdir}/${shafile}.sig" "${webuser}@${webhost}:${shadir}/"
|
||||
# shellcheck disable=SC2086
|
||||
scp ${customsshkey} "${tmpdir}/${shafile}" "${tmpdir}/${shafile}.asc" "${tmpdir}/${shafile}.sig" "${webuser}@${webhost}:${shadir}/"
|
||||
# shellcheck disable=SC2086,SC2029
|
||||
ssh ${customsshkey} "${webuser}@${webhost}" chmod 644 "${shadir}/${shafile}.asc" "${shadir}/${shafile}.sig"
|
||||
break
|
||||
|
||||
Reference in new issue
Block a user