Fix detection of OS
The previous method broke on ubuntu, where the value of ID was not quoted in `/etc/os-release`. This broke tests that depended on paths set on known OSes. Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
-include Defaults.mk
|
||||
|
||||
# Linux distro (try and set to /etc/os-release ID)
|
||||
OS_REL := $(shell sed -n "s/^ID\s*=\s*['"\""]\(.*\)['"\""]/\1/p" /etc/os-release)
|
||||
OS_REL := $(shell sh -c '. /etc/os-release; echo $ID')
|
||||
OS ?= $(OS_REL)
|
||||
|
||||
ARCH_REL := $(shell uname -p)
|
||||
|
||||
Reference in New Issue
Block a user