aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2013-05-13 00:17:21 +0800
committercrees <crees@FreeBSD.org>2013-05-13 00:17:21 +0800
commit91f8080d2660401a929a5aa6458f2eda5a3ba15d (patch)
tree5af7e29134ef1197e604c8b546a535a5cea43f40 /Tools
parent02736acd6ceaf4584ff10b29529dfb0e9f31163e (diff)
downloadfreebsd-ports-graphics-91f8080d2660401a929a5aa6458f2eda5a3ba15d.tar.gz
freebsd-ports-graphics-91f8080d2660401a929a5aa6458f2eda5a3ba15d.tar.zst
freebsd-ports-graphics-91f8080d2660401a929a5aa6458f2eda5a3ba15d.zip
Fix -c option
PR: ports/178193 Submitted by: tota
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/scripts/addport3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/scripts/addport b/Tools/scripts/addport
index c805c92dd0e..7759ccaf250 100755
--- a/Tools/scripts/addport
+++ b/Tools/scripts/addport
@@ -251,10 +251,11 @@ foreach my $thisdir (@dirs) {
# Do commitfile checking but only if the user did not request automatic filling.
if (!$autofill) {
if (-f $c) {
- system("$mv $c $tmpdir/commitfile") or errx(1, "Oops, can't move commitfile!");
+ system("$mv $c $tmpdir/commitfile") && errx(1, "Oops, can't move commitfile!");
print "\nRemember, you asked to use a commit file to read for the commit log.\n";
print "This means you'll get a message saying the log message was unchanged or\n";
print "not specified. Just tell it to continue and it will be committed.\n\n";
+ $commitfile = "--file $tmpdir/commitfile";
}
} else {
## Set up the autofill file.