Some fixes
This commit is contained in:
parent
425b46aaad
commit
6063942d29
|
@ -38,7 +38,7 @@ test_command() {
|
||||||
yes_no_ask_required() {
|
yes_no_ask_required() {
|
||||||
yes_no_ask $@ "(required)"
|
yes_no_ask $@ "(required)"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
error "can't continue"
|
error "refused to perform required task, can't continue"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ yes_no_ask() {
|
||||||
install() {
|
install() {
|
||||||
test_command apt
|
test_command apt
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
sudo apt install $1
|
sudo apt install -y $1
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue