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 <alexl@redhat.com>
This commit is contained in:
Alexander Larsson
2022-12-19 09:23:42 +01:00
parent aeb36e5dad
commit e9243f904b

View File

@ -9,7 +9,7 @@ import (
// Overwritten at build time
var (
_binDir string
_binDir = "/usr/bin"
)
func podmanBinary() string {