wip
This commit is contained in:
parent
d73d4b615e
commit
61d8adce97
1 changed files with 332 additions and 330 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
{
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# ╭──────────────╮
|
# ╭──────────────╮
|
||||||
|
@ -103,11 +104,11 @@ aptCommentCDinSources() {
|
||||||
aptBase() {
|
aptBase() {
|
||||||
aptCommentCDinSources
|
aptCommentCDinSources
|
||||||
echo_info "Updating sources.."
|
echo_info "Updating sources.."
|
||||||
$_sudo apt-get update
|
$_sudo apt update
|
||||||
|
|
||||||
if ! command_exists sudo; then
|
if ! command_exists sudo; then
|
||||||
echo_note "Installing sudo"
|
echo_note "Installing sudo"
|
||||||
apt-get install sudo --assume-yes
|
apt install sudo --assume-yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo_note "Installing base packages: $deps"
|
echo_note "Installing base packages: $deps"
|
||||||
|
@ -115,7 +116,7 @@ aptBase() {
|
||||||
for _deps in $deps; do
|
for _deps in $deps; do
|
||||||
if ! command_exists "$_deps"; then
|
if ! command_exists "$_deps"; then
|
||||||
echo_info "Installing $_deps.."
|
echo_info "Installing $_deps.."
|
||||||
if ! $_sudo apt-get install "$_deps" --assume-yes; then
|
if ! $_sudo apt install "$_deps" --assume-yes; then
|
||||||
echo_error "$_deps - failed to install!"
|
echo_error "$_deps - failed to install!"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -137,7 +138,7 @@ aptOptimize() {
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo_note "Installing nala.."
|
echo_note "Installing nala.."
|
||||||
$_sudo apt-get install nala --assume-yes &&
|
$_sudo apt install nala --assume-yes &&
|
||||||
echo_info "Fetching best mirrors"
|
echo_info "Fetching best mirrors"
|
||||||
$_sudo nala fetch --auto --assume-yes --https-only
|
$_sudo nala fetch --auto --assume-yes --https-only
|
||||||
;;
|
;;
|
||||||
|
@ -353,3 +354,4 @@ if [ "$INSTALL_BASE" = false ] && [ "$OPTIMIZE_OS" = false ]; then # && [ "$SETU
|
||||||
show_help
|
show_help
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue