summaryrefslogtreecommitdiff
path: root/cmd/goaes/commands/encrypt.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/goaes/commands/encrypt.go')
-rw-r--r--cmd/goaes/commands/encrypt.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/goaes/commands/encrypt.go b/cmd/goaes/commands/encrypt.go
index db924ee..0acac46 100644
--- a/cmd/goaes/commands/encrypt.go
+++ b/cmd/goaes/commands/encrypt.go
@@ -44,6 +44,7 @@ func Encrypt(ctx context.Context, cmd *cli.Command) error {
return err
}
+ destination = filepath.Clean(destination)
err = os.WriteFile(destination, dataBuffer.Bytes(), fileMode)
if err != nil {
return err