summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/patchfns.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/patchfns.in b/scripts/patchfns.in
index 1b47bf4..8a0a3cc 100644
--- a/scripts/patchfns.in
+++ b/scripts/patchfns.in
@@ -21,6 +21,12 @@ then
source "$QUILTRC"
fi
+# Add default arguments for this command
+if [ -n "$QUILT_COMMAND" ]; then
+ args="QUILT_$(echo $QUILT_COMMAND | tr a-z A-Z)_ARGS"
+ set -- ${!args} "$@"
+ unset args
+fi
# Quote a string for use in a basic regular expression.
quote_bre()