This commit is contained in:
pika 2025-05-12 15:55:43 +02:00
parent 1c77bb58e3
commit ac0482bf7e
3 changed files with 35 additions and 25 deletions

View file

@ -248,17 +248,21 @@ main() {
checkConfig
}
if getImports; then
case "$1" in
--silent | -s)
echo_info "Executing main silently.."
silent=true
;;
*) silent=false ;;
esac
fi
setup() {
if getImports; then
case "$@" in
--silent | -s)
echo_info "Executing script silently.."
silent=true
;;
*) silent=false ;;
esac
fi
}
checkEnv
askThings
main
instCustom
if setup "$@"; then
checkEnv
askThings
main
instCustom
fi