Skip to content

Commit

Permalink
Fix: Remove path from filename if given
Browse files Browse the repository at this point in the history
fixes #135

Signed-off-by: Knut Ahlers <[email protected]>
  • Loading branch information
Luzifer committed Oct 18, 2023
1 parent a83ae9c commit 9322acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ots-cli/cmd_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func createRunE(cmd *cobra.Command, _ []string) (err error) {
}

secret.Attachments = append(secret.Attachments, client.SecretAttachment{
Name: f,
Name: path.Base(f),
Type: mime.TypeByExtension(path.Ext(f)),
Content: content,
})
Expand Down

0 comments on commit 9322acf

Please sign in to comment.