Skip to content

Commit 1a4df8a

Browse files
committed
improve error when gh is not installed
1 parent 4f95313 commit 1a4df8a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

flake.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/bindings/scripts/download-bindings.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# /usr/bin/env bash
22
set -e
33

4+
(which gh > /dev/null 2>&1) || (echo "Please install gh the github cli tool: https://github.com/cli/cli#installation" && exit 1)
5+
46
REV=${REV:=$(git rev-parse HEAD)}
57
RUN_ID=$(gh run list --commit "$REV" --workflow 'build-bindings.yml' --json databaseId --jq '.[0].databaseId')
68

0 commit comments

Comments
 (0)