From b1dc0ab79d7badf7f52676973c2378134549ecd6 Mon Sep 17 00:00:00 2001 From: BryanLiang <31512600+Bryan2333@users.noreply.github.com> Date: Thu, 30 Apr 2026 23:23:56 +0800 Subject: [PATCH 1/2] Change pacman install to use --needed flag --- core/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/install.sh b/core/install.sh index 7f718c0..8ce5d21 100755 --- a/core/install.sh +++ b/core/install.sh @@ -85,7 +85,7 @@ if [ ${#MISSING_CMDS[@]} -gt 0 ]; then elif command -v pacman >/dev/null 2>&1; then # Arch Linux 系列 - pacman -Sy --noconfirm curl jq cronie procps-ng python openssl >/dev/null 2>&1 + pacman -Sy --needed --noconfirm curl jq cronie procps-ng python openssl >/dev/null 2>&1 mkdir -p /root/.cache/crontab 2>/dev/null systemctl enable cronie >/dev/null 2>&1 && systemctl start cronie >/dev/null 2>&1 From d115f01d4a4e9e9c575a87b0711e2d3303c4787c Mon Sep 17 00:00:00 2001 From: BryanLiang <31512600+Bryan2333@users.noreply.github.com> Date: Thu, 30 Apr 2026 23:26:49 +0800 Subject: [PATCH 2/2] Fix pacman command to use '-S' instead of '-Sy' --- core/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/install.sh b/core/install.sh index 8ce5d21..7d3c6c2 100755 --- a/core/install.sh +++ b/core/install.sh @@ -85,7 +85,7 @@ if [ ${#MISSING_CMDS[@]} -gt 0 ]; then elif command -v pacman >/dev/null 2>&1; then # Arch Linux 系列 - pacman -Sy --needed --noconfirm curl jq cronie procps-ng python openssl >/dev/null 2>&1 + pacman -S --needed --noconfirm curl jq cronie procps-ng python openssl >/dev/null 2>&1 mkdir -p /root/.cache/crontab 2>/dev/null systemctl enable cronie >/dev/null 2>&1 && systemctl start cronie >/dev/null 2>&1