Skip to content

Commit 5f4c405

Browse files
committed
Fix usage with imageRefs
Only make .yaml/.yml paths absolute, so imageRefs work as expected closes #81 Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
1 parent f725874 commit 5f4c405

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/root/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func runCommand(_ *cobra.Command, args []string, exec bool) error {
8787
slog.Debug("Starting agent", "agent", agentName, "debug_mode", debugMode)
8888

8989
agentFilename := args[0]
90-
if !strings.Contains(agentFilename, "\n") {
90+
if !strings.Contains(agentFilename, "\n") && (strings.Contains(agentFilename, ".yaml") || strings.Contains(agentFilename, ".yml")) {
9191
if abs, err := filepath.Abs(agentFilename); err == nil {
9292
agentFilename = abs
9393
}

0 commit comments

Comments
 (0)