From 263098b1a2e12bf285270298075a0868c030a0c9 Mon Sep 17 00:00:00 2001 From: Klaus Hartl Date: Sun, 19 Feb 2023 12:50:56 +0100 Subject: [PATCH] Test for release script dependency --- run.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/run.sh b/run.sh index 6bcc84a..c3e2897 100755 --- a/run.sh +++ b/run.sh @@ -21,6 +21,10 @@ prep_release() { _user "Prepare release draft on GitHub? " read -r answer if [ "$answer" = "y" ]; then + if ! command -v gh > /dev/null 2>&1; then + _fail "Script requires GitHub CLI: \`brew install gh\`" + exit 1 + fi git add --update git commit -S -m "Prepare for $1 release" git push origin main