Fix: Remove path from filename if given
fixes #135 Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
a83ae9ceb3
commit
9322acfcb5
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ func createRunE(cmd *cobra.Command, _ []string) (err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
secret.Attachments = append(secret.Attachments, client.SecretAttachment{
|
secret.Attachments = append(secret.Attachments, client.SecretAttachment{
|
||||||
Name: f,
|
Name: path.Base(f),
|
||||||
Type: mime.TypeByExtension(path.Ext(f)),
|
Type: mime.TypeByExtension(path.Ext(f)),
|
||||||
Content: content,
|
Content: content,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue