summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/restoreBaseImage
diff options
context:
space:
mode:
authoririna <irinagomez@us.es>2014-03-19 10:29:56 +0000
committeririna <irinagomez@us.es>2014-03-19 10:29:56 +0000
commit0b914892a5a539c94b3f660c29180e46546e5f9f (patch)
treef3764207d2775761d78035044328a0775ae748ac /client/shared/scripts/restoreBaseImage
parent2fc81c46b542992ffffa212a15c6284e4bf3694e (diff)
#565 Se controla el error en la transferencia de rsync y se muestra aviso
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4195 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/shared/scripts/restoreBaseImage')
-rwxr-xr-xclient/shared/scripts/restoreBaseImage1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/shared/scripts/restoreBaseImage b/client/shared/scripts/restoreBaseImage
index 29ec3df4..b56ad05e 100755
--- a/client/shared/scripts/restoreBaseImage
+++ b/client/shared/scripts/restoreBaseImage
@@ -122,6 +122,7 @@ ogWaitMountImage "$1" "$2" "$IMGEXT" || exit $(ogRaiseError session $OG_ERR_DON
# Sincronizamos la particiĆ³n con la imagen.
ogEcho log session "[60] $MSG_HELP_ogSyncRestore: $1 $2 $IMGEXT $3 $4"
ogSyncRestore "$1" "$2" "$IMGEXT" $3 $4
+[ $? == 0 ] || ogEcho session warning "$MSG_ERR_SYNCHRONIZING"
TIMEAUX2=$[SECONDS-TIME2]
ogEcho log session " $MSG_SCRIPTS_TASK_END, $MSG_SCRIPTS_TIME_PARTIAL : $[TIMEAUX2/60]m $[TIMEAUX2%60]s"