diff options
author | Luotao Fu <l.fu@pengutronix.de> | 2006-09-12 15:03:27 +0000 |
---|---|---|
committer | Luotao Fu <l.fu@pengutronix.de> | 2006-09-12 15:03:27 +0000 |
commit | 000cd98f7d36dcab7aa3c7e678aba417eaeba696 (patch) | |
tree | a9d4a63e9195d3b89aa64906a4ddec51e99895c7 /scripts/apply_patch_series.sh | |
parent | 1e842be20681facae96c67e0f4ac9bbf0925c154 (diff) | |
download | ptxdist-000cd98f7d36dcab7aa3c7e678aba417eaeba696.tar.gz ptxdist-000cd98f7d36dcab7aa3c7e678aba417eaeba696.tar.xz |
improved patch parameter checking
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@6042 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/apply_patch_series.sh')
-rwxr-xr-x | scripts/apply_patch_series.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/apply_patch_series.sh b/scripts/apply_patch_series.sh index e97cbf1d9..613234493 100755 --- a/scripts/apply_patch_series.sh +++ b/scripts/apply_patch_series.sh @@ -73,7 +73,7 @@ egrep -v "^[[:space:]]*#" | egrep -v "^[[:space:]]*$" | while read patchfile pat ;; esac; echo "applying $abspatch" - if [ $patchpara ];then + if [ $patchpara ] && [ `echo $patchpara | egrep '\-p[0-9]+'` ] ;then $CAT "$abspatch" | patch $patchpara || exit 1 else $CAT "$abspatch" | patch -p1 || exit 1 |