mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
Global Function Tweak
This commit is contained in:
parent
d9bf08945c
commit
bfb1b599d9
@ -31,7 +31,7 @@ install_package() {
|
|||||||
sudo apt-get install -y "$1" 2>&1 | tee -a "$LOG"
|
sudo apt-get install -y "$1" 2>&1 | tee -a "$LOG"
|
||||||
# Making sure the package is installed
|
# Making sure the package is installed
|
||||||
if sudo dpkg -l | grep -q -w "$1" ; then
|
if sudo dpkg -l | grep -q -w "$1" ; then
|
||||||
echo -e "\e[1A\e[K${OK} Package ${!YELLOW}$1${RESET} has been successfully installed!"
|
echo -e "\e[1A\e[K${OK} Package ${YELLOW}$1${RESET} has been successfully installed!"
|
||||||
else
|
else
|
||||||
# Something is missing, exiting to review the log
|
# Something is missing, exiting to review the log
|
||||||
echo -e "\e[1A\e[K${ERROR} $1 failed to install :( , please check the install.log. You may need to install manually! Sorry, I have tried :("
|
echo -e "\e[1A\e[K${ERROR} $1 failed to install :( , please check the install.log. You may need to install manually! Sorry, I have tried :("
|
||||||
@ -48,7 +48,7 @@ re_install_package() {
|
|||||||
if sudo apt-get install --reinstall -y "$1" 2>&1 | tee -a "$LOG"; then
|
if sudo apt-get install --reinstall -y "$1" 2>&1 | tee -a "$LOG"; then
|
||||||
# Check if the package was installed successfully
|
# Check if the package was installed successfully
|
||||||
if dpkg -l | grep -q -w "$1"; then
|
if dpkg -l | grep -q -w "$1"; then
|
||||||
echo -e "${OK} $1 was installed successfully."
|
echo -e "\e[1A\e[K${OK} Package ${YELLOW}$1${RESET} has been successfully installed!"
|
||||||
else
|
else
|
||||||
# Package was not found, installation failed
|
# 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 :("
|
echo -e "${ERROR} $1 failed to install. Please check the install.log. You may need to install it manually. Sorry, I have tried :("
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user