That rm -f is unnecessary.