diff --git a/dream.sh b/dream.sh index 4c16f5c..ccc0fe4 100644 --- a/dream.sh +++ b/dream.sh @@ -160,7 +160,6 @@ check-and-install() { check_env() { if [ "$(id -u)" -ne 0 ]; then if command_exists sudo; then - # echo_info "User is not root. Using sudo for privileged operations." _sudo="sudo -E" else echo-error "No sudo found and you're not root! Can't install packages." @@ -223,7 +222,6 @@ _setup() { $_sudo nala autopurge --assume-yes else pkger=apt-get - # echo_pkg "Using pacman" $_sudo apt-get remove --assume-yes "$@" $_sudo apt-get autoremove --assume-yes fi @@ -253,15 +251,12 @@ _setup() { pkg-install() { if command_exists paru; then pkger=paru - # echo_pkg "Using paru" paru -S --color always --noconfirm --needed "$@" elif command_exists yay; then pkger=yay - # echo_pkg "Using yay" yay -S --color always --noconfirm --needed "$@" else pkger=pacman - # echo_pkg "Using pacman" $_sudo pacman -S --color always --noconfirm --needed "$@" fi } @@ -270,15 +265,12 @@ _setup() { pkg-remove() { if command_exists paru; then pkger=paru - # echo_info "Using paru" paru -R --color always --noconfirm "$@" elif command_exists yay; then pkger=yay - # echo_info "Using yay" yay -R --color always --noconfirm "$@" else pkger=pacman - # echo_warning "Using pacman" $_sudo pacman -R --color always --noconfirm "$@" fi } @@ -350,14 +342,13 @@ get_packager() { ;; *) pen red bold "Can not detect distribution correctly!" - # echo_error "DEBUG:: $pkger ::" return 69 ;; esac } if [ -e /etc/os-release ]; then - echo_info "Detecting distribution..." + pen bold grey "Detecting distribution..." . /etc/os-release # ─< Convert $ID and $ID_LIKE to lowercase >──────────────────────────────────────────────