summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bin/am2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/am b/src/bin/am
index c8d14be78..df9a71a14 100755
--- a/src/bin/am
+++ b/src/bin/am
@@ -330,7 +330,7 @@ sub do_put() {
$ctrlfile = "$dst/$fhint";
# Grab the current revision number. Clunky way, I know!
# $ver_revision=`$wget -qO - $svnrev`;
- $ver_revision=`svnversion . | cut -d 'M' -f 1`;
+ $ver_revision=`svnversion . | sed "s/.*:\\\(.*\\\)/\\1/" | cut -d 'M' -f 1 | cut -d 'S' -f 1`;
chomp($ver_revision);
unless ($ver_revision =~ /^\d+/ and $ver_revision > 0)