Skip to content

Commit

Permalink
status.sh支持ArchLinux
Browse files Browse the repository at this point in the history
  • Loading branch information
harvies authored and zdz committed Jan 6, 2024
1 parent 866fc22 commit 02bae2d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ function check_release() {
release="deb"
elif grep -q -E -i "debian|ubuntu" /proc/version; then
release="deb"
elif grep -q -E -i "archlinux" /proc/version; then
release="pkg"
else
echo -e "${Error} 暂不支持该 Linux 发行版"
exit 1
Expand All @@ -116,6 +118,8 @@ function install_tool() {
elif [[ ${release} == "deb" ]]; then
apt -y update
apt -y install unzip
elif [[ ${release} == "pkg" ]]; then
pacman -S unzip --noconfirm
fi
fi

Expand All @@ -126,6 +130,8 @@ function install_tool() {
elif [[ ${release} == "deb" ]]; then
apt -y update
apt -y install wget
elif [[ ${release} == "pkg" ]]; then
pacman -S wget --noconfirm
fi
fi
}
Expand Down

0 comments on commit 02bae2d

Please sign in to comment.