Skip to content

Commit 6322071

Browse files
authored
tools: improve log output of create-release-proposal
PR-URL: nodejs#61028 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 4f24aff commit 6322071

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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+
for dep in 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)