summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/comirror3
-rwxr-xr-xbin/comirror-setup4
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;
}