diff options
author | Stephan Bergmann <stephan.bergmann.secondary@googlemail.com> | 2011-08-30 21:48:32 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2011-08-30 21:53:24 -0400 |
commit | 8d6d6bd8bd86aa54cb425241df54bec72e12383e (patch) | |
tree | 70e41fa6d385dea555754a2a4dfdc6ea5435c0cb /autogen.sh | |
parent | Some cppcheck cleaning (diff) | |
download | core-8d6d6bd8bd86aa54cb425241df54bec72e12383e.tar.gz core-8d6d6bd8bd86aa54cb425241df54bec72e12383e.zip |
Fix to create autogen.lastrun for a single argument case.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index 6135d17a8611..a37953cb81b6 100755 --- a/autogen.sh +++ b/autogen.sh @@ -139,7 +139,7 @@ if (defined $ENV{NOCONFIGURE}) { } else { # Save autogen.lastrun only if we did get some arguments on the command-line if (@ARGV) { - if ($#cmdline_args > 0) { + if (scalar(@cmdline_args) > 0) { # print "writing args to autogen.lastrun\n"; my $fh; open ($fh, ">autogen.lastrun") || die "can't open autogen.lastrun: $!"; |