Some fixes

This commit is contained in:
Thomas Forgione 2019-04-15 20:24:41 +02:00
parent 425b46aaad
commit 6063942d29
No known key found for this signature in database
GPG Key ID: BFD17A2D71B3B5E7
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ test_command() {
yes_no_ask_required() {
yes_no_ask $@ "(required)"
if [ $? -ne 0 ]; then
error "can't continue"
error "refused to perform required task, can't continue"
exit 1
fi
}
@ -56,7 +56,7 @@ yes_no_ask() {
install() {
test_command apt
if [ $? -eq 0 ]; then
sudo apt install $1
sudo apt install -y $1
return
fi