From: "Ulrich Ölmann" <u.oelmann@pengutronix.de>
To: PTXdist Development Mailing List <ptxdist@pengutronix.de>
Cc: "Ulrich Ölmann" <u.oelmann@pengutronix.de>
Subject: [ptxdist] [PATCH] templates: meson: wizard.sh: use neat parameter expansion and prevent word splitting
Date: Tue, 18 Jun 2019 07:10:02 +0200 [thread overview]
Message-ID: <20190618051002.21481-1-u.oelmann@pengutronix.de> (raw)
Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
---
rules/templates/src-meson-prog/wizard.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/rules/templates/src-meson-prog/wizard.sh b/rules/templates/src-meson-prog/wizard.sh
index 3753d8d0e67d..d98a72585594 100644
--- a/rules/templates/src-meson-prog/wizard.sh
+++ b/rules/templates/src-meson-prog/wizard.sh
@@ -1,13 +1,13 @@
#!/bin/bash
NAME="${1}"
-if [ -z "$NAME" ]; then
+if [ -z "${NAME}" ]; then
echo -n "project name: "
read NAME
fi
VERSION="${3}"
-if [ -z "$VERSION" ]; then
+if [ -z "${VERSION}" ]; then
echo -n "project version: "
read VERSION
fi
@@ -16,7 +16,7 @@ mv "@name@.c" "${NAME}.c"
for i in \
meson.build \
- ${NAME}.c \
+ "${NAME}.c" \
; do
sed -i -e "s/\@name\@/${NAME}/g" \
-e "s/\@version\@/${VERSION}/g" $i
--
2.20.1
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
reply other threads:[~2019-06-18 5:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20190618051002.21481-1-u.oelmann@pengutronix.de \
--to=u.oelmann@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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