Maybe checking the exit code for the `install -r` command would be better?