#659: Using only compiled `rsync` command on old 32-bit ogLive clients.

configfile
Ramón M. Gómez 2019-12-04 18:16:18 +01:00
parent 8ecc409bda
commit a5ed41010b
1 changed files with 2 additions and 1 deletions

View File

@ -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 "$@"