mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-14 10:46:58 -07:00
* usr/lib/byobu/include/shutil, usr/lib/byobu/release:
- Wolfi doesn't really have versions, so just use the distro name rather than version id
This commit is contained in:
parent
2c1dbcc2f8
commit
c3e907c5a1
3 changed files with 11 additions and 1 deletions
|
@ -320,6 +320,10 @@ get_distro() {
|
|||
Debian*)
|
||||
[ -r /etc/lsb-release ] && distro=$(. /etc/lsb-release && [ -n "$GOOGLE_ID" ] && echo "gLinux" || echo "Debian")
|
||||
;;
|
||||
*)
|
||||
# assume first field is what we want
|
||||
distro="${issue%% *}";
|
||||
;;
|
||||
esac
|
||||
elif [ -r "/etc/issue" ]; then
|
||||
# lsb_release is *really* slow; try to use /etc/issue first
|
||||
|
|
|
@ -28,6 +28,9 @@ __release() {
|
|||
if [ -n "$RELEASE" ]; then
|
||||
# user defined
|
||||
true
|
||||
elif [ "$BYOBU_DISTRO" = "Wolfi" ]; then
|
||||
# Wolfi, and perhaps other distroless distros don't really have release versions
|
||||
RELEASE="Wolfi"
|
||||
elif [ -r "/etc/os-release" ]; then
|
||||
# lsb_release is *really* slow; try to use /etc/os-release
|
||||
RELEASE=$(. /etc/os-release && echo "$VERSION_ID")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue