1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

Add column and upstream version check

This commit is contained in:
aclist 2022-01-21 05:41:03 +09:00 committed by GitHub
parent 037451d6a4
commit a0d73ed338
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(){