mirror of
https://github.com/Luzifer/ots.git
synced 2025-02-04 09:25:28 -05: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{
|
||||
Name: f,
|
||||
Name: path.Base(f),
|
||||
Type: mime.TypeByExtension(path.Ext(f)),
|
||||
Content: content,
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user