Skip to content

Commit

Permalink
Fixing existing download removal when forced
Browse files Browse the repository at this point in the history
  • Loading branch information
boggydigital committed Dec 11, 2024
1 parent 6fbc8bc commit b214dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/download_video.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func downloadVideo(
absFilename := filepath.Join(absVideosDir, relFilename)

if _, err := os.Stat(absFilename); err == nil {
if !options.Force {
if options.Force {
if err := os.Remove(absFilename); err != nil {
return err
}
Expand Down

0 comments on commit b214dc2

Please sign in to comment.