mirror of
https://github.com/aclist/dztui.git
synced 2025-01-01 15:12:05 +01:00
Add column and upstream version check
This commit is contained in:
parent
037451d6a4
commit
a0d73ed338
1 changed files with 4 additions and 0 deletions
4
dztui.sh
4
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)
|
command -v $dep 2>&1>/dev/null || (printf "[ERROR] Requires %s >= %s\n" $dep ${deps[$dep]} ; exit 1)
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
column_check(){
|
||||||
|
echo foo | column -o$'\t' &>/dev/null || err "column version >= 2.37.2 required"
|
||||||
}
|
}
|
||||||
varcheck(){
|
varcheck(){
|
||||||
[[ -z $key ]] && (err "Missing API key")
|
[[ -z $key ]] && (err "Missing API key")
|
||||||
|
@ -70,6 +72,8 @@ varcheck(){
|
||||||
}
|
}
|
||||||
checks() {
|
checks() {
|
||||||
depcheck
|
depcheck
|
||||||
|
column_check
|
||||||
|
version_check
|
||||||
varcheck
|
varcheck
|
||||||
}
|
}
|
||||||
check_ping(){
|
check_ping(){
|
||||||
|
|
Loading…
Reference in a new issue