[Fuego] [PATCH 1/2] main: fix syntax error

Tim.Bird at sony.com Tim.Bird at sony.com
Fri May 25 03:45:54 UTC 2018



> -----Original Message-----
> From: Liu Wenlong
> 
> If FUEGO_DEBUG not defined, then,
> error:
> "fuego-core/engine/scripts/main.sh: line 24: & 1 : syntax error: operand
>  expected (error token is "& 1 ")"
> 
> Signed-off-by: Liu Wenlong <liuwl.fnst at cn.fujitsu.com>
> ---
>  engine/scripts/main.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/engine/scripts/main.sh b/engine/scripts/main.sh
> index 62fd0fa..7ce08c3 100644
> --- a/engine/scripts/main.sh
> +++ b/engine/scripts/main.sh
> @@ -21,7 +21,7 @@
>  # DESCRIPTION
>  # This script contains a sequence of calls that are needed for running a test
> 
> -if [ -n "$FUEGO_DEBUG" -a $(( $FUEGO_DEBUG & 1 )) = 1 ] ; then
> +if [[ -n "$FUEGO_DEBUG" && $(( $FUEGO_DEBUG & 1 )) = 1 ]] ; then
>      set -x
>  fi
> 
> --
> 2.7.4

Thanks very much.  I can't believe I missed the error message.
Applied.
 -- Tim



More information about the Fuego mailing list