summaryrefslogtreecommitdiffstats
path: root/client/engine/Rsync.lib
diff options
context:
space:
mode:
Diffstat (limited to 'client/engine/Rsync.lib')
-rwxr-xr-xclient/engine/Rsync.lib17
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