Helpers fixes
This commit is contained in:
parent
a71b682f49
commit
1c2abec8a7
4
helpers
4
helpers
@ -9,7 +9,7 @@ installed2() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
apt_install() {
|
apt_install() {
|
||||||
sudo apt install -y --autoremove "$*"
|
sudo apt install -y --autoremove $*
|
||||||
}
|
}
|
||||||
|
|
||||||
require() {
|
require() {
|
||||||
@ -21,7 +21,7 @@ require() {
|
|||||||
done
|
done
|
||||||
if [ ${#sw[@]} -gt 0 ]; then
|
if [ ${#sw[@]} -gt 0 ]; then
|
||||||
info "This packages will be installed in your system:\n${sw[*]}"
|
info "This packages will be installed in your system:\n${sw[*]}"
|
||||||
apt_install "${sw[*]}"
|
apt_install ${sw[*]}
|
||||||
[ $? -gt 0 ] && die "installation cancelled" 201
|
[ $? -gt 0 ] && die "installation cancelled" 201
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user