Helpers fixes
This commit is contained in:
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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user