2
0
Fork 0

sh.zio.install-package: add some tests before main functions

main
Ducky 2023-08-15 17:00:33 +01:00
parent c387cd5bb9
commit e598871714
1 changed files with 3 additions and 0 deletions

View File

@ -95,6 +95,9 @@ function download_generic() {
install "$requested_package"
}
test_root
test_prog "wget"
case $requested_package in
"caddy") download_caddy ;;
*) die "Package '$requested_package' cannot be installed by this tool" ;;