mirror of
https://github.com/brockar/Debian-Hyprland.git
synced 2026-01-14 08:00:57 -03:00
update
This commit is contained in:
@@ -49,8 +49,8 @@ show_progress() {
|
|||||||
|
|
||||||
# Function for installing packages with a progress bar
|
# Function for installing packages with a progress bar
|
||||||
install_package() {
|
install_package() {
|
||||||
if sudo dpkg -l | grep -q -w "$1" ; then
|
if sudo dpkg -l | grep -q -w "$1" ; then
|
||||||
echo -e "${INFO} ${MAGENTA}$1${RESET} is already installed. Skipping..."
|
echo -e "${INFO} ${MAGENTA}$1${RESET} is already installed. Skipping..."
|
||||||
else
|
else
|
||||||
(
|
(
|
||||||
stdbuf -oL sudo apt-get install -y "$1" 2>&1
|
stdbuf -oL sudo apt-get install -y "$1" 2>&1
|
||||||
@@ -67,6 +67,7 @@ install_package() {
|
|||||||
echo -e "${ERROR} ${YELLOW}$1${RESET} failed to install. Please check the install.log. You may need to install it manually. Sorry, I have tried :("
|
echo -e "${ERROR} ${YELLOW}$1${RESET} failed to install. Please check the install.log. You may need to install it manually. Sorry, I have tried :("
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function for re-installing packages
|
# Function for re-installing packages
|
||||||
|
|||||||
Reference in New Issue
Block a user