Skip to content

Commit 1862288

Browse files
committed
system - split the lsb_release parameters for compatibility with armbian - fixes #2897
Armbian uses a minimal bash script replacement for lsb_release that uses basic parameter parsing and requires the arguments to be split rather than using -sidrc Note that Armbian isn't officially supported or tested
1 parent b91de67 commit 1862288

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scriptmodules/system.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ function get_os_version() {
6767

6868
# get os distributor id, description, release number and codename
6969
local os
70-
mapfile -t os < <(lsb_release -sidrc)
70+
# armbian uses a minimal shell script replacement for lsb_release with basic
71+
# parameter parsing that requires the arguments split rather than using -sidrc
72+
mapfile -t os < <(lsb_release -s -i -d -r -c)
7173
__os_id="${os[0]}"
7274
__os_desc="${os[1]}"
7375
__os_release="${os[2]}"

0 commit comments

Comments
 (0)