Automatically fetch latest patch in shell script