From: "Alex Bennée" <alex.bennee@linaro.org>
To: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Cc: qemu-devel@nongnu.org, famz@redhat.com, philmd@redhat.com
Subject: Re: [Qemu-devel] [PATCH 2/3] debian-bootstrap.pre: Modern shell scripting (use $() instead of ``)
Date: Fri, 19 Oct 2018 12:23:01 +0100 [thread overview]
Message-ID: <875zxynpt6.fsf@linaro.org> (raw)
In-Reply-To: <20181017094406.4844-3-maozhongyi@cmss.chinamobile.com>
Mao Zhongyi <maozhongyi@cmss.chinamobile.com> writes:
> Various shell files contain a mix between obsolete ``
> and modern $(); It would be nice to convert to using $()
> everywhere.
>
> Cc: alex.bennee@linaro.org
> Cc: famz@redhat.com
> Cc: philmd@redhat.com
>
> Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> tests/docker/dockerfiles/debian-bootstrap.pre | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/docker/dockerfiles/debian-bootstrap.pre b/tests/docker/dockerfiles/debian-bootstrap.pre
> index 3b0ef95374..c164778c30 100755
> --- a/tests/docker/dockerfiles/debian-bootstrap.pre
> +++ b/tests/docker/dockerfiles/debian-bootstrap.pre
> @@ -2,7 +2,7 @@
> #
> # Simple wrapper for debootstrap, run in the docker build context
> #
> -FAKEROOT=`which fakeroot 2> /dev/null`
> +FAKEROOT=$(which fakeroot 2> /dev/null)
> # debootstrap < 1.0.67 generates empty sources.list, see Debian#732255
> MIN_DEBOOTSTRAP_VERSION=1.0.67
>
> @@ -52,7 +52,7 @@ fi
>
> if [ -z $DEBOOTSTRAP_DIR ]; then
> NEED_DEBOOTSTRAP=false
> - DEBOOTSTRAP=`which debootstrap 2> /dev/null`
> + DEBOOTSTRAP=$(which debootstrap 2> /dev/null)
> if [ -z $DEBOOTSTRAP ]; then
> echo "No debootstrap installed, attempting to install from SCM"
> NEED_DEBOOTSTRAP=true
--
Alex Bennée
next prev parent reply other threads:[~2018-10-19 11:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-17 9:44 [Qemu-devel] [PATCH 0/3] Modern shell scripting (use $() instead of ``) Mao Zhongyi
2018-10-17 9:44 ` [Qemu-devel] [PATCH 1/3] qemu-iotests: Modern shellscripting " Mao Zhongyi
2018-10-17 9:44 ` [Qemu-devel] [PATCH 2/3] debian-bootstrap.pre: Modern shell scripting " Mao Zhongyi
2018-10-19 11:23 ` Alex Bennée [this message]
2018-10-17 9:44 ` [Qemu-devel] [PATCH 3/3] po/Makefile: " Mao Zhongyi
2018-10-17 9:54 ` Thomas Huth
2018-10-18 2:10 ` [Qemu-devel] [PATCH 3/3] po/Makefile: Modern shell scripting (use $() insteadof ``) maozy
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=875zxynpt6.fsf@linaro.org \
--to=alex.bennee@linaro.org \
--cc=famz@redhat.com \
--cc=maozhongyi@cmss.chinamobile.com \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.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;
as well as URLs for NNTP newsgroup(s).