shell code for download patch file & apply patch