Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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