Fixed installations and xargs args.

This commit is contained in:
2024-05-30 23:24:55 +08:00
parent c20053df10
commit 3d63f9c254
3 changed files with 5 additions and 6 deletions

View File

@ -5,11 +5,11 @@ set -euo
. /etc/os-release
if [[ $ID == "debian" ]]; then
apt-get install -y rsync jq parallel
apt update && apt-get install -y rsync jq parallel
#elif [[ $ID == "centos" ]]; then
# yum -y install jq rsync parallel
elif [[ $ID_LIKE == "arch" ]]; then
pacman -S parallel jq rsync
pacman -Syyu && pacman -S parallel jq rsync
else
printf "Distro not found. Exiting."
exit 1