[sheepdog] [PATCH] fix this: simple2farm: line 31: [: ==: unary operator expected
Liu Yuan
namei.unix at gmail.com
Mon Jul 16 10:07:37 CEST 2012
On 07/15/2012 08:27 PM, Jens Weber wrote:
> Signed-off-by: Jens Weber <jweber at tek2b.org>
> ---
> script/simple2farm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/script/simple2farm b/script/simple2farm
> index a7bc109..0743f20 100755
> --- a/script/simple2farm
> +++ b/script/simple2farm
> @@ -28,7 +28,7 @@ config_offset=11
> # Get the backend store from config file
> echo "Read config file"
> store=$(od --skip-bytes=$config_offset -An -c ../config | sed 's/ //g' | sed 's/\\0//g')
> -if [ $store == "farm" ]; then
> +if [ "x$store" == "xfarm" ]; then
> echo "It's already the farm store, we'er done"
> exit 0
> fi
>
Applied after adding a subject. thanks
Yuan
More information about the sheepdog
mailing list