X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=scripts%2Fvesync;h=b722168d9ec7be996bc58d0afb7ad8baaae9e4c2;hb=91f3bf94636e7e3127c031640d8a51977045582f;hp=2c98175b62149d273ae8e68e6c993f603f86a1ca;hpb=3b34449070c0846fdc49436d1edd5916512f1644;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