mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
small patch for inxi unknown distro, this is a bug fix, so it's a version bump too.
This commit is contained in:
parent
48ae838480
commit
856ed2bc1b
11
inxi
11
inxi
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 1.7.22
|
||||
#### Date: July 25 2011
|
||||
#### version: 1.7.23
|
||||
#### Date: July 27 2011
|
||||
#### Patch Number: 00
|
||||
########################################################################
|
||||
#### SPECIAL THANKS
|
||||
|
@ -3407,7 +3407,12 @@ get_distro_data()
|
|||
fi
|
||||
## finally, if all else has failed, give up
|
||||
if [[ -z $distro ]];then
|
||||
distro='Unknown distro o_O'
|
||||
if [[ " $DISTROS_DERIVED $DISTROS_PRIMARY " == *" $distro_file "* ]];then
|
||||
distro=$( sed -E -e 's/[-_]//' -e 's/(release|version)//' <<< $distro_file | sed -E 's/^([a-z])/\u\1/' )
|
||||
fi
|
||||
if [[ -z $distro ]];then
|
||||
distro='Unknown distro o_O'
|
||||
fi
|
||||
fi
|
||||
|
||||
# this handles an arch bug where /etc/arch-release is empty and /etc/issue is corrupted
|
||||
|
|
Loading…
Reference in a new issue