linux install pacman 加入強制性安裝

This commit is contained in:
2025-05-03 01:42:36 +08:00
parent cc85332d7e
commit 0598cb7b71
2 changed files with 3 additions and 3 deletions

View File

@@ -130,7 +130,7 @@ wait_for_pacman_unlock
if [[ ${#to_install_pacmanForce[@]} -gt 0 ]]; then
echo " - Installing missing packages via pacman: ${to_install_pacmanForce[@]}"
sudo pacman -Sy --needed --noconfirm "${to_install_pacmanForce[@]}"
sudo pacman -Sy --needed --noconfirm --overwrite \* "${to_install_pacmanForce[@]}"
else
sudo pacman -Sy
fi
@@ -147,7 +147,7 @@ done
if [[ ${#to_install_pacman[@]} -gt 0 ]]; then
echo " - Installing missing packages via pacman: ${to_install_pacman[@]}"
sudo pacman -S --needed --noconfirm "${to_install_pacman[@]}"
sudo pacman -S --needed --noconfirm --overwrite \* "${to_install_pacman[@]}"
fi
# 等待鎖定檔案被移除