#!/bin/bash echo "Applying patches:" while read p; do if patch -p1 -s --no-backup-if-mismatch --fuzz=0 &2 exit 1 fi done