mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] templates: meson: wizard.sh: use neat parameter expansion and prevent word splitting
@ 2019-06-18  5:10 Ulrich Ölmann
  0 siblings, 0 replies; only message in thread
From: Ulrich Ölmann @ 2019-06-18  5:10 UTC (permalink / raw)
  To: PTXdist Development Mailing List; +Cc: Ulrich Ölmann

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-06-18  5:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-18  5:10 [ptxdist] [PATCH] templates: meson: wizard.sh: use neat parameter expansion and prevent word splitting Ulrich Ölmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox