iproute2/apply-patches
2024-02-09 17:24:38 +08:00

12 lines
227 B
Bash

#!/bin/bash
echo "Applying patches:"
while read p; do
if patch -p1 -s --no-backup-if-mismatch --fuzz=0 <patches/"$p"; then
echo -e "\t$p"
else
echo "*** Patch $p failed" >&2
exit 1
fi
done