aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorCeri Davies <ceri@FreeBSD.org>2003-08-11 19:32:19 +0000
committerCeri Davies <ceri@FreeBSD.org>2003-08-11 19:32:19 +0000
commit507c0355a3b1714cbb99cf82d5266b187d5c0205 (patch)
tree783ebcc3a1419d64763692aa4dc008799a3d7280 /gnu
parent129045e79677fef1bad66060c2ff6d006c4fe06d (diff)
downloadsrc-507c0355a3b1714cbb99cf82d5266b187d5c0205.tar.gz
src-507c0355a3b1714cbb99cf82d5266b187d5c0205.zip
Have the -a and -f options work together.
PR: misc/40057
Notes
Notes: svn path=/head/; revision=118793
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/send-pr/send-pr.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/send-pr/send-pr.sh b/gnu/usr.bin/send-pr/send-pr.sh
index b776d37f12e7..314a24e6d107 100644
--- a/gnu/usr.bin/send-pr/send-pr.sh
+++ b/gnu/usr.bin/send-pr/send-pr.sh
@@ -281,6 +281,9 @@ if [ -n "$IN_FILE" ]; then
cat $IN_FILE > $TEMP
fi
fi
+ # If the user has requested that we attach files (with the -a option),
+ # then add them too.
+ [ -n "$ATTACHED_FILES" ] && echo "$ATTACHED_FILES" >> $TEMP
else
if [ -n "$PR_FORM" -a -z "$PRINT_INTERN" ]; then