mirror of
https://github.com/brockar/Debian-Hyprland.git
synced 2026-01-14 08:00:57 -03:00
updated hyprland.sh. removed the hyprland-devel and force reinstall hyprland
This commit is contained in:
@@ -40,6 +40,27 @@ install_package() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Function for re-installing packages
|
||||
re_install_package() {
|
||||
echo -e "${NOTE} Force installing $1 ..."
|
||||
|
||||
# Try to reinstall the package
|
||||
if sudo apt-get install --reinstall -y "$1" 2>&1 | tee -a "$LOG"; then
|
||||
# Check if the package was installed successfully
|
||||
if dpkg -l | grep -q -w "$1"; then
|
||||
echo -e "${OK} $1 was installed successfully."
|
||||
else
|
||||
# Package was not found, installation failed
|
||||
echo -e "${ERROR} $1 failed to install. Please check the install.log. You may need to install it manually. Sorry, I have tried :("
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
# Installation command failed
|
||||
echo -e "${ERROR} Failed to reinstall $1. Please check the install.log. You may need to install it manually. Sorry, I have tried :("
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
uninstall_package() {
|
||||
# Check if package is installed
|
||||
if sudo dpkg -l | grep -q -w "^ii $1" ; then
|
||||
|
||||
Reference in New Issue
Block a user