| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,5 @@ | |||
| 1 | 1 | #!/bin/sh | |
| 2 | 2 | ||
| 3 | - set -xe | ||
| 4 | - | ||
| 5 | 3 | GITHUB_REPOSITORY=${GITHUB_REPOSITORY:-nodejs/node} | |
| 6 | 4 | BOT_TOKEN=${BOT_TOKEN:-} | |
| 7 | 5 | ||
@@ -19,10 +17,16 @@ if [ -z "$GITHUB_REPOSITORY" ] || [ -z "$BOT_TOKEN" ]; then | |||
| 19 | 17 | exit 1 | |
| 20 | 18 | fi | |
| 21 | 19 | ||
| 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 | ||
| 26 | 30 | ||
| 27 | 31 | git node release --prepare --skipBranchDiff --yes --releaseDate "$RELEASE_DATE" | |
| 28 | 32 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments