mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH] ptxd_normalize_config: fix typo in variable name
Date: Wed,  4 Sep 2019 14:58:16 +0200	[thread overview]
Message-ID: <20190904125816.538-1-rhi@pengutronix.de> (raw)

A simple s/nomalized/normalized/g in that function did the trick.

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 scripts/lib/ptxd_lib_kconfig.sh | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/scripts/lib/ptxd_lib_kconfig.sh b/scripts/lib/ptxd_lib_kconfig.sh
index 03c6b05b9e17..e65f583cafb8 100644
--- a/scripts/lib/ptxd_lib_kconfig.sh
+++ b/scripts/lib/ptxd_lib_kconfig.sh
@@ -46,38 +46,38 @@ export -f ptxd_kconfig_migrate
 #
 # return:
 # $relative_file_dotconfig	the config file relative to its layer
-# $file_dotconfig		the nomalized absolute path:
+# $file_dotconfig		the normalized absolute path:
 #   ${PTXDIST_LAYERS[X]}/${relative_file_dotconfig}
 #
 ptxd_normalize_config() {
-    local nomalized old
-    nomalized="$(readlink -f "${file_dotconfig}")"
-    old="${nomalized}"
+    local normalized old
+    normalized="$(readlink -f "${file_dotconfig}")"
+    old="${normalized}"
     for layer in "${PTXDIST_LAYERS[@]}"; do
 	local tmp="${old/#$(readlink -f ${layer})\//${layer}/}"
 	if [ "${tmp}" != "${old}" ]; then
-	    nomalized="${tmp}"
+	    normalized="${tmp}"
 	fi
     done
-    if [ "$(readlink -f "${nomalized}")" != "${old}" ]; then
+    if [ "$(readlink -f "${normalized}")" != "${old}" ]; then
 	ptxd_bailout "Failed to normalize filename:" \
 	    "${file_dotconfig}" \
 	    "and" \
-	    "${nomalized}" \
+	    "${normalized}" \
 	    "should be the same file!"
     fi
-    if [ "${nomalized}" = "${old}" -a "${nomalized}" = "${nomalized#${PTXDIST_LAYERS[0]}}" ]; then
+    if [ "${normalized}" = "${old}" -a "${normalized}" = "${normalized#${PTXDIST_LAYERS[0]}}" ]; then
 	ptxd_bailout "Failed to normalize filename:" \
 	    "${file_dotconfig}" \
 	    "must be located inside the BSP!"
     fi
     for layer in "${PTXDIST_LAYERS[@]}"; do
-	local relative="${nomalized#${layer}/}"
-	if [ "${relative}" != "${nomalized}" ]; then
+	local relative="${normalized#${layer}/}"
+	if [ "${relative}" != "${normalized}" ]; then
 	    relative_file_dotconfig="${relative}"
 	fi
     done
-    file_dotconfig="${nomalized}"
+    file_dotconfig="${normalized}"
 
 }
 export -f ptxd_normalize_config
-- 
2.23.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

                 reply	other threads:[~2019-09-04 12:58 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=20190904125816.538-1-rhi@pengutronix.de \
    --to=rhi@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