From b6be4737b5e8f6301efc29fb286563f8b59e8839 Mon Sep 17 00:00:00 2001 From: Prasad Ghangal Date: Thu, 3 Jun 2021 10:45:56 +0530 Subject: [PATCH] Support for file target in kando pull command (#1010) Signed-off-by: Prasad Ghangal Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- pkg/kando/location_pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kando/location_pull.go b/pkg/kando/location_pull.go index 53f046ccec..f726e910bc 100644 --- a/pkg/kando/location_pull.go +++ b/pkg/kando/location_pull.go @@ -80,7 +80,7 @@ func runLocationPull(cmd *cobra.Command, args []string) error { func targetWriter(target string) (io.Writer, error) { if target != usePipeParam { - return os.Open(target) + return os.OpenFile(target, os.O_RDWR|os.O_CREATE, 0755) } return os.Stdout, nil }