wip
This commit is contained in:
parent
1c77bb58e3
commit
ac0482bf7e
3 changed files with 35 additions and 25 deletions
25
template.sh
25
template.sh
|
@ -100,16 +100,21 @@
|
|||
esac
|
||||
}
|
||||
|
||||
if getImports; then
|
||||
case "$@" in
|
||||
--silent | -s)
|
||||
silent=true
|
||||
echo_warning "Running script silently!"
|
||||
;;
|
||||
*)
|
||||
silent=false
|
||||
;;
|
||||
esac
|
||||
setup() {
|
||||
if getImports; then
|
||||
case "$@" in
|
||||
--silent | -s)
|
||||
silent=true
|
||||
echo_warning "Running script silently!"
|
||||
;;
|
||||
*)
|
||||
silent=false
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
if setup; then
|
||||
getDependencies
|
||||
main </dev/tty
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue