From 9644ddfac7d6244e84621ebe380276b3bc86de7e Mon Sep 17 00:00:00 2001 From: Chris Rees Date: Sun, 12 May 2013 16:17:21 +0000 Subject: [PATCH] Fix -c option PR: ports/178193 Submitted by: tota --- Tools/scripts/addport | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tools/scripts/addport b/Tools/scripts/addport index c805c92dd0ee..7759ccaf250d 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.