mirror of
https://github.com/Luzifer/ots.git
synced 2024-10-01 01:06:09 -04:00
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
@ -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 New Issue
Block a user