The small typo I mentioned in the previous mail is still there...

Thanks,
Laurentiu

On 11/29/2012 08:15 AM, Hongxu Jia wrote:
> +# if don't have the right to access dir, gain by sudo 
> +if [ ! -x $target_sdk_dir -o ! -w $target_sdk_dir -o ! -r $target_sdk_dir ]; 
> then 
> +     SUDO_EXEC=$(which "sudo")
> +     if [ -z $SUDO_EXEC ]; then
> +             echo "No command 'sudo' found, please install sduo first. 
> Abort!"
s/sduo/sudo/                                                  ^^^^

> +             exit 1
> +     fi
> +
> +     # test sudo could gain root right
> +     $SUDO_EXEC pwd >/dev/null 2>&1
> +     [ $? -ne 0 ] && echo "Sorry, you are not allowed to execute as root." 
> && exit 1
>  fi

_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to