projects
/
matthijs
/
upstream
/
backupninja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
typo in backupninja.1
[matthijs/upstream/backupninja.git]
/
handlers
/
rdiff
diff --git
a/handlers/rdiff
b/handlers/rdiff
index 52637cd42ee2eb2b7c8ab5313762735d3a8c1bab..46cae4981d0277e980d2b6671e32481e2aba4d67 100644
(file)
--- a/
handlers/rdiff
+++ b/
handlers/rdiff
@@
-32,12
+32,12
@@
function get_version() {
# if user or host is missing, returns the local version.
if [ "$#" -lt 2 ]; then
debug "$RDIFFBACKUP -V"
# if user or host is missing, returns the local version.
if [ "$#" -lt 2 ]; then
debug "$RDIFFBACKUP -V"
-
echo `$RDIFFBACKUP -V
`
+
echo `$RDIFFBACKUP -V | cut -d. -f1,2
`
else
local user=$1
local host=$2
debug "ssh $sshoptions $host -l $user '$RDIFFBACKUP -V'"
else
local user=$1
local host=$2
debug "ssh $sshoptions $host -l $user '$RDIFFBACKUP -V'"
-
echo `ssh $sshoptions $host -l $user "$RDIFFBACKUP -V | grep rdiff-backup
"`
+
echo `ssh $sshoptions $host -l $user "$RDIFFBACKUP -V | grep rdiff-backup | cut -d. -f1,2
"`
fi
}
fi
}