mirror of
https://github.com/JaKooLit/Debian-Hyprland.git
synced 2025-12-21 10:20:12 +01:00
minor adjustment
This commit is contained in:
parent
2656e277ba
commit
50343fe1c6
@ -49,6 +49,9 @@ show_progress() {
|
||||
|
||||
# Function for installing packages with a progress bar
|
||||
install_package() {
|
||||
if sudo dpkg -l | grep -q -w "$1" ; then
|
||||
echo -e "${INFO} ${MAGENTA}$1${RESET} is already installed. Skipping..."
|
||||
else
|
||||
(
|
||||
stdbuf -oL sudo apt-get install -y "$1" 2>&1
|
||||
) >> "$LOG" 2>&1 &
|
||||
|
||||
@ -72,7 +72,9 @@ fi
|
||||
read -p "${CAT} Have you edited your /etc/apt/sources.list? ${YELLOW}[Very Important else script will fail]${RESET} (y/n): ${RESET}" proceed2
|
||||
|
||||
if [ "$proceed2" != "y" ]; then
|
||||
printf "\n%.0s" {1..2}
|
||||
echo "Installation aborted! Kindly edit your ${YELLOW}sources.list${RESET} first. Refer to readme."
|
||||
printf "\n%.0s" {1..2}
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user