mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
update
This commit is contained in:
parent
50343fe1c6
commit
37aef30bbd
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user