mirror of
https://github.com/Fred78290/nct6687d.git
synced 2025-07-23 07:03:04 +02:00
Makefile: silence unuseful sed's warning
`/etc/fedora-release` doesn't exist on non-Fedora systems, but `sed` is used on it unconditionally. Redirect error to `/dev/null` and give the variable a reasonable value for systems without the file.
This commit is contained in:
2
Makefile
2
Makefile
@@ -4,7 +4,7 @@ curpwd := $(shell pwd)
|
||||
kver ?= $(shell uname -r)
|
||||
commitcount := $(shell git rev-list --all --count)
|
||||
commithash := $(shell git rev-parse --short HEAD)
|
||||
fedoraver := $(shell sed -n 's/.*Fedora release \([^ ]*\).*/\1/p' /etc/fedora-release)
|
||||
fedoraver := $(shell sed -n 's/.*Fedora release \([^ ]*\).*/\1/p' /etc/fedora-release 2>/dev/null || echo 0)
|
||||
|
||||
|
||||
build:
|
||||
|
Reference in New Issue
Block a user