Skip to content

Commit e3c5adc

Browse files
aduh95targos
authored andcommitted
tools: fix release script sign function
PR-URL: #36556 Refs: #36540 Reviewed-By: Beth Griggs <[email protected]> Reviewed-By: Richard Lau <[email protected]>
1 parent c5602fb commit e3c5adc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/release.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ sign() {
103103
# shellcheck disable=SC2086,SC2029
104104
shapath=$(ssh ${customsshkey} "${webuser}@${webhost}" $signcmd nodejs $1)
105105

106-
echo "${shapath}" | grep -q '^/.*/SHASUMS256.txt$' || \
107-
echo 'Error: No SHASUMS file returned by sign!' \
108-
exit 1
106+
echo "${shapath}" | grep -q '^/.*/SHASUMS256.txt$' || (\
107+
echo 'Error: No SHASUMS file returned by sign!' &&\
108+
exit 1)
109109

110110
echo ""
111111
echo "# Signing SHASUMS for $1..."
@@ -141,7 +141,8 @@ sign() {
141141
fi
142142

143143
if [ "X${yorn}" = "Xy" ]; then
144-
scp "${customsshkey}" "${tmpdir}/${shafile}" "${tmpdir}/${shafile}.asc" "${tmpdir}/${shafile}.sig" "${webuser}@${webhost}:${shadir}/"
144+
# shellcheck disable=SC2086
145+
scp ${customsshkey} "${tmpdir}/${shafile}" "${tmpdir}/${shafile}.asc" "${tmpdir}/${shafile}.sig" "${webuser}@${webhost}:${shadir}/"
145146
# shellcheck disable=SC2086,SC2029
146147
ssh ${customsshkey} "${webuser}@${webhost}" chmod 644 "${shadir}/${shafile}.asc" "${shadir}/${shafile}.sig"
147148
break

0 commit comments

Comments
 (0)