From e9243f904bb925745ad50c1ba1c4e102d9d552f0 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Mon, 19 Dec 2022 09:23:42 +0100 Subject: [PATCH] quadlet: Default BINDIR to /usr/bin if tag not specified When building without the makefile the v4/pkg/systemd/quadlet._binDir defined is not set. In that case default to /usr/bin rather than the empty string. This helps e.g. the rpm specfile which doesn't use the makefile. Signed-off-by: Alexander Larsson --- pkg/systemd/quadlet/podmancmdline.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/systemd/quadlet/podmancmdline.go b/pkg/systemd/quadlet/podmancmdline.go index b05a1f776a..a1e70e0dbf 100644 --- a/pkg/systemd/quadlet/podmancmdline.go +++ b/pkg/systemd/quadlet/podmancmdline.go @@ -9,7 +9,7 @@ import ( // Overwritten at build time var ( - _binDir string + _binDir = "/usr/bin" ) func podmanBinary() string {