From: Kirill Korotaev Date: Tue, 22 Aug 2006 10:34:04 +0000 (+0400) Subject: Fix vzmigrate to work with mawk (not gawk only) X-Git-Url: http://git.openvz.org/?p=vzctl;a=commitdiff;h=ca21ee121297cd2e230895078fd3153230e37794 Fix vzmigrate to work with mawk (not gawk only) http://bugzilla.openvz.org/show_bug.cgi?id=231 Signed-Off-By: Thorsten Schifferdecker Signed-Off-By: Kirill Korotaev --- Index: vzctl-3.0.11/vzmigrate =================================================================== --- vzctl-3.0.11.orig/vzmigrate +++ vzctl-3.0.11/vzmigrate @@ -375,7 +375,7 @@ fi log 1 "Syncing private" if ! rsync -aH --progress "$VE_PRIVATE" "root@$host:${VE_PRIVATE%/*}" | \ - grep "% of" | awk --assign ORS="\r" '{print $10}'; then + grep "% of" | awk -v ORS="\r" '{print $10}'; then log 1 "Failed to sync VPS private areas" undo_quota_on exit $MIG_ERR_COPY