From cda2b938ab0c1842f592bf752daa8be66d112d7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E8=8C=AB=E4=B9=8B=E5=BF=83?= Date: Sun, 24 Aug 2025 14:49:10 +0800 Subject: [PATCH] fix(archlinux): use paru if available, fallback to yay for AUR dependencies --- net.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/net.sh b/net.sh index 00e94d5..40afe62 100644 --- a/net.sh +++ b/net.sh @@ -493,7 +493,13 @@ $usesudo $install_command jq curl ImageMagick mtr iperf3 bc procps-ng libstdc++ ;; pacman)$usesudo pacman -Sy $usesudo $install_command jq curl imagemagick mtr iperf3 bc procps-ng -$usesudo yay -S --noconfirm gcompat +if command -v paru >/dev/null 2>&1; then + $usesudo paru -S --noconfirm gcompat +elif command -v yay >/dev/null 2>&1; then + $usesudo yay -S --noconfirm gcompat +else + echo "Neither paru nor yay found. Please install one of them for AUR support." +fi ;; apk)$usesudo apk update $usesudo $install_command jq curl imagemagick mtr iperf3 bc procps gcompat libstdc++