git am < ../0001-fix-rosePublicConfig.h-DESTDIR.patch Need to add error checking after this command. Or enable "set -e" for the bash script @gleisonsdm