summaryrefslogtreecommitdiffstats
path: root/client/engine
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2019-12-04 18:16:18 +0100
committerRamón M. Gómez <ramongomez@us.es>2019-12-04 18:16:18 +0100
commita5ed41010b462ce7121766bde23e6abf316b7eeb (patch)
treea31b62353c72c5274057a66818a701afd348c865 /client/engine
parent8ecc409bdaac8dde29b64ed6f4b6f1f98fd7ae6b (diff)
#659: Using only compiled `rsync` command on old 32-bit ogLive clients.
Diffstat (limited to 'client/engine')
-rwxr-xr-xclient/engine/Rsync.lib3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/engine/Rsync.lib b/client/engine/Rsync.lib
index a68ea382..2478956a 100755
--- a/client/engine/Rsync.lib
+++ b/client/engine/Rsync.lib
@@ -4,12 +4,13 @@
# 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.
+#@warning Solo en clientes ogLive de 32 bits.
#@return instrucción para ser ejecutada.
#*/
function rsync ()
{
local RSYNC
-[ -x $OPENGNSYS/bin/rsync ] && RSYNC=$OPENGNSYS/bin/rsync
+[ "$(arch)" == "i686" -a -x $OPENGNSYS/bin/rsync ] && RSYNC=$OPENGNSYS/bin/rsync
RSYNC=${RSYNC:-$(which rsync)}
$RSYNC "$@"