Merge pull request #28 from qingkong9579/main

fix(archlinux): use paru if available, fallback to yay for AUR dependencies
This commit is contained in:
xykt
2025-09-01 18:16:53 +08:00
committed by GitHub

8
net.sh
View File

@@ -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++