From 259b4cba9e789f893411f02381c30136826fd100 Mon Sep 17 00:00:00 2001 From: Jens Reimann Date: Mon, 28 Jun 2021 09:04:32 +0200 Subject: [PATCH] Check if we have all the tools --- d | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/d b/d index c16baf0..698e128 100755 --- a/d +++ b/d @@ -3,6 +3,12 @@ set -e cd $(dirname $0) +die() { echo "$*" 1>&2; exit 1; } + +for i in jq wget svd git; do + command -v "$i" &>/dev/null || die "Missing the command line tool '$i'" +done + case "$1" in download_all) ./d download_mcufinder