It is necessary to detect failure of the rsync command, but the exit
status of the pipeline is the exit status of the last command, by
default. So make it a single command.

Signed-off-by: Nick Andrew <[EMAIL PROTECTED]>
---
 bin/vzmigrate.in |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/bin/vzmigrate.in b/bin/vzmigrate.in
index 2b29797..31203b5 100755
--- a/bin/vzmigrate.in
+++ b/bin/vzmigrate.in
@@ -439,8 +439,7 @@ fi
 
 log 1 "Syncing private"
 if ! $RSYNC --progress \
-               "$VE_PRIVATE" "[EMAIL PROTECTED]:${VE_PRIVATE%/*}" |
-               grep "% of" | awk -v ORS="\r" '{print $10}'; then
+               "$VE_PRIVATE" "[EMAIL PROTECTED]:${VE_PRIVATE%/*}" ; then
        log 0 "Failed to sync container private areas"
        undo_quota_on
        exit $MIG_ERR_COPY
-- 
1.5.6.5

_______________________________________________
Devel mailing list
Devel@openvz.org
https://openvz.org/mailman/listinfo/devel

Reply via email to