minor adjustment

This commit is contained in:
JaKooLit
2025-02-04 22:53:35 +09:00
parent 2656e277ba
commit 50343fe1c6
2 changed files with 6 additions and 1 deletions

View File

@@ -48,7 +48,10 @@ show_progress() {
# Function for installing packages with a progress bar
install_package() {
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 &