From: Laurentiu Palcu <laurentiu.palcu@intel.com>
To: Hongxu Jia <hongxu.jia@windriver.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] populate_sdk_base:tarball installer:add sudo prompt
Date: Thu, 29 Nov 2012 10:00:47 +0200 [thread overview]
Message-ID: <50B7162F.5050108@intel.com> (raw)
In-Reply-To: <e5340a75b4d8dcdc897814eb2620828498cb8328.1354169442.git.hongxu.jia@windriver.com>
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
next prev parent reply other threads:[~2012-11-29 8:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-29 6:15 [PATCH 0/1] populate_sdk_base:tarball installer:add sudo prompt Hongxu Jia
2012-11-29 6:15 ` [PATCH 1/1] " Hongxu Jia
2012-11-29 8:00 ` Laurentiu Palcu [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-11-29 8:14 [PATCH 0/1] " Hongxu Jia
2012-11-29 8:14 ` [PATCH 1/1] " Hongxu Jia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50B7162F.5050108@intel.com \
--to=laurentiu.palcu@intel.com \
--cc=hongxu.jia@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox