From 2884c41158a7297398386811cd6703c2171b66a1 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 15 Apr 2009 12:33:30 +0100 Subject: Enabled getpatch to specify outfile --- includes/patch-includes.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/patch-includes.sh b/includes/patch-includes.sh index 0f76409..c09cb81 100644 --- a/includes/patch-includes.sh +++ b/includes/patch-includes.sh @@ -7,7 +7,11 @@ function getpatch { url=$1 - filename=$(basename $url) + if [ $# -gt 1 ]; then + filename="$2" + else + filename=$(basename $url) + fi if [ -f "$PATCHDIR/$filename" ]; then cp "$PATCHDIR/$filename" $TMPDIR || die -- cgit v1.2.3