Skip to content

Commit e8646a7

Browse files
aduh95RafaelGSS
authored andcommitted
tools: improve log output of create-release-proposal
PR-URL: #61028 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 15c3655 commit e8646a7

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

‎tools/actions/create-release-proposal.sh‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/sh
22

3-
set -xe
4-
53
GITHUB_REPOSITORY=${GITHUB_REPOSITORY:-nodejs/node}
64
BOT_TOKEN=${BOT_TOKEN:-}
75

@@ -19,10 +17,16 @@ if [ -z "$GITHUB_REPOSITORY" ] || [ -z "$BOT_TOKEN" ]; then
1917
exit 1
2018
fi
2119

22-
if!command -v node ||!command -v gh ||!command -v git ||!command -v awk;then
23-
echo"Missing required dependencies"
24-
exit 1
25-
fi
20+
HAS_MISSING_DEPS=
21+
fordepin node gh git git-node awk;do
22+
command -v "$dep"> /dev/null || {
23+
echo"Required dependency $dep is missing">&2
24+
HAS_MISSING_DEPS=1
25+
}
26+
done
27+
[ -z"$HAS_MISSING_DEPS" ] ||exit 1
28+
29+
set -xe
2630

2731
git node release --prepare --skipBranchDiff --yes --releaseDate "$RELEASE_DATE"
2832

0 commit comments

Comments
 (0)