From f049050b7343fa77f6508a0d8da9782e670b8781 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 6 Feb 2025 12:17:09 +0900 Subject: [PATCH] removed the --needed --- install-scripts/Global_functions.sh | 4 ++-- install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install-scripts/Global_functions.sh b/install-scripts/Global_functions.sh index 5605e4e..b697414 100755 --- a/install-scripts/Global_functions.sh +++ b/install-scripts/Global_functions.sh @@ -56,7 +56,7 @@ install_package_pacman() { else # Run pacman and redirect all output to a log file ( - stdbuf -oL sudo pacman -S --noconfirm --needed "$1" 2>&1 + stdbuf -oL sudo pacman -S --noconfirm "$1" 2>&1 ) >> "$LOG" 2>&1 & PID=$! show_progress $PID "$1" @@ -78,7 +78,7 @@ install_package() { echo -e "${INFO} ${MAGENTA}$1${RESET} is already installed. Skipping..." else ( - stdbuf -oL $ISAUR -S --noconfirm --needed "$1" 2>&1 + stdbuf -oL $ISAUR -S --noconfirm "$1" 2>&1 ) >> "$LOG" 2>&1 & PID=$! show_progress $PID "$1" diff --git a/install.sh b/install.sh index 211cbc9..fb773bf 100755 --- a/install.sh +++ b/install.sh @@ -40,7 +40,7 @@ if pacman -Q base-devel &> /dev/null; then else echo "$NOTE Install base-devel.........." - if sudo pacman -S --noconfirm --needed base-devel; then + if sudo pacman -S --noconfirm base-devel; then echo "$OK base-devel has been installed successfully." else echo "$ERROR base-devel not found nor cannot be installed." @@ -83,7 +83,7 @@ printf "\n%.0s" {1..1} # install pciutils if detected not installed. Necessary for detecting GPU if ! pacman -Qs pciutils > /dev/null; then echo "pciutils is not installed. Installing..." - sudo pacman -S --noconfirm --needed pciutils + sudo pacman -S --noconfirm pciutils printf "\n%.0s" {1..1} fi