- test -f ${file} && rm -f $file
- # ... but keep their md5sum:
- test -f ${file}.md5 && mv ${file}.md5 .archive
+ test -f "${file}" && rm -f "$file"
+ # ... but keep their md5sum / sha1sum:
+ test -f "${file}".md5 && mv "${file}".md5 .archive
+ test -f "${file}".sha1 && mv "${file}".sha1 .archive