X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fvesync;h=b722168d9ec7be996bc58d0afb7ad8baaae9e4c2;hb=b0a62d195efca12c5cb9e7c0b3bea3be2cd57fc9;hp=2c98175b62149d273ae8e68e6c993f603f86a1ca;hpb=fc28db1eb4146796ec27c2fb15780d6303120261;p=util-vserver.git diff --git a/scripts/vesync b/scripts/vesync index 2c98175..b722168 100755 --- a/scripts/vesync +++ b/scripts/vesync @@ -1,5 +1,5 @@ #!/bin/bash -# $Id: vesync 2363 2006-11-03 14:36:23Z hollow $ +# $Id: vesync 2486 2007-02-05 18:08:17Z hollow $ # Copyright (C) 2006 Benedikt Boehm # @@ -75,17 +75,15 @@ VSOMETHING_PKGMGMT=1 export VSOMETHING_TITLE VSOMETHING_PKGMGMT -test ${#vsomething_opts[@]} -eq 0 || vsomething_opts=( "${vsomething_opts[@]}" -- ) - ret=0 test $overlay_only -eq 0 && \ - $_VSOMETHING "${send_through[@]}" emerge "${vsomething_opts[@]}" --metadata + $_VSOMETHING "${send_through[@]}" emerge "${vsomething_opts[@]}" "$@" -- --metadata ret=$? test -n "$overlay" -a -n "$overlay_host" && \ - $_VSOMETHING "${send_through[@]}" rsync "${vsomething_opts[@]}" \ + $_VSOMETHING "${send_through[@]}" rsync "${vsomething_opts[@]}" "$@" -- \ -rtW --progress --delete --delete-after "${overlay_host}/" "${overlay}/" test $? -eq 0 -a $ret -eq 0