Skip to content

Commit

Permalink
Support for file target in kando pull command (#1010)
Browse files Browse the repository at this point in the history
Signed-off-by: Prasad Ghangal <prasad.ghangal@gmail.com>

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
PrasadG193 and mergify[bot] committed Jun 3, 2021
1 parent 8065055 commit b6be473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kando/location_pull.go
Expand Up @@ -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
}
Expand Down

0 comments on commit b6be473

Please sign in to comment.