Hacker News new | ask | show | jobs
by alainv 3705 days ago
`rm -f` ignores nonexistent files so you could omit the `if` to be concise.
1 comments

Good call. I was mainly using `-f` to suppress the prompt about deleting the file, but you're correct, it's unnecessary to have the if statement in this case.