From a0d73ed338b68f21dd4d99ed66c1b935fa2a2764 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Fri, 21 Jan 2022 05:41:03 +0900 Subject: [PATCH] Add column and upstream version check --- dztui.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dztui.sh b/dztui.sh index f443ee9..14a47a7 100644 --- a/dztui.sh +++ b/dztui.sh @@ -57,6 +57,8 @@ depcheck(){ command -v $dep 2>&1>/dev/null || (printf "[ERROR] Requires %s >= %s\n" $dep ${deps[$dep]} ; exit 1) done } +column_check(){ + echo foo | column -o$'\t' &>/dev/null || err "column version >= 2.37.2 required" } varcheck(){ [[ -z $key ]] && (err "Missing API key") @@ -70,6 +72,8 @@ varcheck(){ } checks() { depcheck + column_check + version_check varcheck } check_ping(){