Skip to content

Commit

Permalink
Allow edit subcommand to create files.
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Fontein <felix@fontein.de>
  • Loading branch information
felixfontein committed Sep 4, 2024
1 parent f9ae796 commit fd1b3e1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/sops/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1202,9 +1202,6 @@ func main() {
if err != nil {
return toExitError(err)
}
if _, err := os.Stat(fileName); os.IsNotExist(err) {
return common.NewExitError("Error: cannot operate on non-existent file", codes.NoFileSpecified)
}

inputStore := inputStore(c, fileName)
outputStore := outputStore(c, fileName)
Expand Down

0 comments on commit fd1b3e1

Please sign in to comment.