mirror of
https://github.com/containers/podman.git
synced 2025-08-06 03:19:52 +08:00
quadlet: Embed the correct binary name in the generated comment
The binary name is not the same as in the old quadlet, and can anyway differ in system and user runs, so use os.Args[0] to get the right name in the comment. Signed-off-by: Alexander Larsson <alexl@redhat.com>
This commit is contained in:
@ -134,7 +134,7 @@ func generateServiceFile(service *parser.UnitFile) error {
|
||||
Debugf("writing '%s'", service.Path)
|
||||
|
||||
service.PrependComment("",
|
||||
"Automatically generated by quadlet-generator",
|
||||
fmt.Sprintf("Automatically generated by %s", os.Args[0]),
|
||||
"")
|
||||
|
||||
f, err := os.Create(service.Path)
|
||||
|
Reference in New Issue
Block a user