[OE-core] [PATCH 1/1] populate_sdk_base:tarball installer:add sudo prompt
Laurentiu Palcu
laurentiu.palcu at intel.com
Thu Nov 29 08:00:47 UTC 2012
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
More information about the Openembedded-core
mailing list