diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-05-06 11:13:30 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-05-06 11:13:30 +0200 |
commit | c1af97f7d2daadccff60cf7f5238422f935be673 (patch) | |
tree | a1f905cd600ba2c6a4466f64d9f4740a672348fb | |
parent | ed6a46acaba947eb911b6ab61efcbe9680a38b0a (diff) |
Fix --version
-rwxr-xr-x | bin/comirror | 3 | ||||
-rwxr-xr-x | bin/comirror-setup | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/bin/comirror b/bin/comirror index 10d4f27..f3984fb 100755 --- a/bin/comirror +++ b/bin/comirror @@ -17,10 +17,9 @@ my %state = file_to_hash('comirror.state'); my $uri = shift || $state{'uri'}; my $image_re = $conf{'image_re'}; my $exit = 1; -my $version = '0.0-git'; if ($uri ~~ ['-v', '--version']) { - say "comirror version $version"; + say "comirror version $VERSION"; exit 0; } diff --git a/bin/comirror-setup b/bin/comirror-setup index 08c78c6..d3f66ea 100755 --- a/bin/comirror-setup +++ b/bin/comirror-setup @@ -33,7 +33,7 @@ my @opts = ( 0, ], ); -my $version = '0.0-git'; +our $VERSION = '0.1'; local $| = 1; @@ -74,7 +74,7 @@ sub parse_or_ask_options { GetOptions($conf, map { $_->[0] . $_->[1] } @opts); if ($conf->{'version'}) { - say "comirror version $version"; + say "comirror version $VERSION"; exit 0; } |