aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-01-01 21:31:59 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-01-01 21:31:59 +0100
commit65c3d6ea925434f24ea86012e3b1a51496a2a6fc (patch)
tree9e3d63f3357f4ef4e87dd8f1bf47730d56a48b8a
parente42b9d7ddb6b16771d22156aea1c4e77d9036a59 (diff)
downloadpacredir-65c3d6ea925434f24ea86012e3b1a51496a2a6fc.tar.gz
pacredir-65c3d6ea925434f24ea86012e3b1a51496a2a6fc.tar.zst
fix parsing of /etc/os-release
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 80f80fd..c9f330b 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ LDFLAGS += -Wl,-z,now -Wl,-z,relro -pie
# the distribution ID
ARCH := $(shell shopt -u extglob && source /etc/makepkg.conf && echo $$CARCH)
-ID := $(shell grep 'ID=' < /etc/os-release | cut -d= -f2)
+ID := $(shell shopt -u extglob && source /etc/os-release && echo $$ID)
# this is just a fallback in case you do not use git but downloaded
# a release tarball...