diff options
author | irina <irinagomez@us.es> | 2014-10-23 12:17:07 +0000 |
---|---|---|
committer | irina <irinagomez@us.es> | 2014-10-23 12:17:07 +0000 |
commit | b648d88d658c5ff51f62d8f836d13206a3b21773 (patch) | |
tree | 3e4264c58233cc529ed13d5bc39ebfb52119029f /client/engine/Rsync.lib | |
parent | 1de07b8ab5806d8daa2fe7a31501a32cbde8a018 (diff) |
#659 rsync version 3.0.1: se integra en el trunk el binario compilado en estatico y la función
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4410 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/engine/Rsync.lib')
-rwxr-xr-x | client/engine/Rsync.lib | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/client/engine/Rsync.lib b/client/engine/Rsync.lib index fcc2bcf1..63edfc5c 100755 --- a/client/engine/Rsync.lib +++ b/client/engine/Rsync.lib @@ -1,4 +1,21 @@ #!/bin/bash + +#/** +# rsync +#@brief Función para utilizar la versión de rsync situada en $OPENGNSYS/bin en vez de la del sistema operativo. +#@param los mismos que el comando rsync del sistema operativo. +#@return instrucción para ser ejecutada. +#*/ +function rsync () +{ +local RSYNC +[ -x $OPENGNSYS/bin/rsync ] && RSYNC=$OPENGNSYS/bin/rsync +RSYNC=${RSYNC:-$(which rsync)} + +$RSYNC "$@" +} + + #/** # ogCreateFileImage [ REPO | CACHE ] image_name extension size #@brief Crear el archivo |