Use singular instead of plural for hook arguments

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar
2022-05-09 16:53:05 +02:00
parent e93bafa6d4
commit ef6f48e9f7
4 changed files with 6 additions and 7 deletions

View File

@@ -74,7 +74,7 @@ func (d ldconfig) Hooks() ([]Hook, error) {
args := []string{hookPath, "hook", "update-ldcache"}
for _, f := range libDirs {
args = append(args, "--folders", f)
args = append(args, "--folder", f)
}
h := Hook{
Lifecycle: cdi.CreateContainerHook,

View File

@@ -58,7 +58,7 @@ func (d symlinks) Hooks() ([]Hook, error) {
args := []string{hookPath, "hook", "create-symlinks"}
for _, f := range d.csvFiles {
args = append(args, "--csv-filenames", f)
args = append(args, "--csv-filename", f)
}
h := Hook{