sh.zio.install-package: add some tests before main functions
This commit is contained in:
parent
c387cd5bb9
commit
e598871714
1 changed files with 3 additions and 0 deletions
|
@ -95,6 +95,9 @@ function download_generic() {
|
||||||
install "$requested_package"
|
install "$requested_package"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test_root
|
||||||
|
test_prog "wget"
|
||||||
|
|
||||||
case $requested_package in
|
case $requested_package in
|
||||||
"caddy") download_caddy ;;
|
"caddy") download_caddy ;;
|
||||||
*) die "Package '$requested_package' cannot be installed by this tool" ;;
|
*) die "Package '$requested_package' cannot be installed by this tool" ;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue