Skip to content
Snippets Groups Projects
Commit 8afda8cc authored by Thomas Neidhart's avatar Thomas Neidhart
Browse files

Merge branch 'main' into 'main'

Check if GitHub CLI tool is installed

See merge request !6
parents acfc5b95 22f0ffec
No related branches found
No related tags found
1 merge request!6Check if GitHub CLI tool is installed
...@@ -79,6 +79,13 @@ if [[ -z "${GH_TOKEN:-}" ]]; then ...@@ -79,6 +79,13 @@ if [[ -z "${GH_TOKEN:-}" ]]; then
export GH_TOKEN export GH_TOKEN
fi fi
command -v gh >/dev/null 2>&1 || {
echo >&2 "This script requires the GitHub CLI tool (gh), but it's not installed."
echo >&2 "Please download and install it from https://github.com/cli/cli."
echo >&2 "Aborting."
exit 1
}
case $ACTION in case $ACTION in
"list-active") list_active_membership ;; "list-active") list_active_membership ;;
"list-pending") list_pending_membership ;; "list-pending") list_pending_membership ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment