sh.zio.install-package: add some tests before main functions
parent
c387cd5bb9
commit
e598871714
|
@ -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…
Reference in New Issue