Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
distro_info
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
distro_info
Commits
784c2572
Commit
784c2572
authored
Mar 04, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
distro_info: fix --distro-arch for rpm based systems
parent
85a368b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
distro_info
bin/distro_info
+6
-3
No files found.
bin/distro_info
View file @
784c2572
...
...
@@ -496,7 +496,7 @@ get_debian_arch()
{
local arch
=
"
$(
get_arch
)
"
case
$arch
in
'
i5
86'
)
'
x
86'
)
arch
=
'i386'
;;
'x86_64'
)
arch
=
'amd64'
;;
...
...
@@ -509,7 +509,10 @@ get_distro_arch()
local arch
=
"
$(
get_arch
)
"
case
"
$(
pkgtype
)
"
in
rpm
)
:
case
$arch
in
'x86'
)
arch
=
'i586'
;;
esac
;;
deb
)
get_debian_arch
...
...
@@ -679,7 +682,7 @@ EOF
case
$1
in
-h
)
-h
|
--help
)
echo
"distro_info v
$PROGVERSION
- distro information retriever"
echo
"Usage: distro_info [options] [args]"
echo
"Options:"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment