From d187efc7524d9a6a979eae76b109728215ea4e23 Mon Sep 17 00:00:00 2001 From: Munif Tanjim Date: Mon, 16 Aug 2021 17:32:22 +0600 Subject: [PATCH] update setup-gh --- setup-gh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup-gh b/setup-gh index 648ff4a..6afaf0e 100755 --- a/setup-gh +++ b/setup-gh @@ -1,16 +1,18 @@ #!/usr/bin/env bash -declare url_pattern="" +set -euo pipefail ensure_tool() { local -r tool="${1}" if ! type "${tool}" >/dev/null 2>&1; then echo "missing required tool: ${tool}" + exit 1 fi } setup_for_darwin() { ensure_tool brew + brew install gh } -- knotmirror 0.0.1