Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdcffb16

Browse files
committed
get.sh: support dnf
Signed-off-by: Chen Linxuan <me@black-desk.cn>
1 parent90b47a2 commitdcffb16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎scripts/get.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ test_tools() {
168168

169169
install_tools() {
170170
{ apt --version>/dev/null2>&1&&$sudoprefix apt install -y git build-essential libreadline-dev; }||
171+
{ dnf --version>/dev/null2>&1&&$sudoprefix dnf install -y git readline-devel bzip2 @development-tools; }||
171172
{ yum --version>/dev/null2>&1&&$sudoprefix yum install -y git readline-devel bzip2&&$sudoprefix yum groupinstall -y'Development Tools'; }||
172173
{ zypper --version>/dev/null2>&1&&$sudoprefix zypper --non-interactive install git readline-devel&&$sudoprefix zypper --non-interactive install -t pattern devel_C_C++; }||
173174
{ pacman -V>/dev/null2>&1&&$sudoprefix pacman -S --noconfirm --needed git base-devel ncurses readline; }||
@@ -179,7 +180,7 @@ install_tools() {
179180
{ xbps-install --version>/dev/null2>&1&&$sudoprefix xbps-install -Sy git base-devel; }#void
180181

181182
}
182-
test_tools|| { install_tools&& test_tools; }|| raise"$(echo -e'Dependencies Installation Fail\nThe getter currently only support these package managers\n\t* apt\n\t* yum\n\t* zypper\n\t* pacman\n\t* portage\n\t* xbps\n Please install following dependencies manually:\n\t* git\n\t* build essential like `make`, `gcc`, etc\n\t* libreadline-dev (readline-devel)')" 1
183+
test_tools|| { install_tools&& test_tools; }|| raise"$(echo -e'Dependencies Installation Fail\nThe getter currently only support these package managers\n\t* apt\n\t*dnf\n\t*yum\n\t* zypper\n\t* pacman\n\t* portage\n\t* xbps\n Please install following dependencies manually:\n\t* git\n\t* build essential like `make`, `gcc`, etc\n\t* libreadline-dev (readline-devel)')" 1
183184

184185
#-----------------------------------------------------------------------------
185186
# install xmake

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp