summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRoland Hieber <rhi@pengutronix.de>2019-09-04 14:58:16 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2019-09-19 18:46:04 +0200
commit33d5bf929425d880db462c34077e23f833abd733 (patch)
tree78c7d5561138080fe07d747333f16b9059f840d8 /scripts
parent6a17f08cbc43ab4f50cf7b3f800c83ffa621c18b (diff)
downloadptxdist-33d5bf929425d880db462c34077e23f833abd733.tar.gz
ptxdist-33d5bf929425d880db462c34077e23f833abd733.tar.xz
ptxd_normalize_config: fix typo in variable name
A simple s/nomalized/normalized/g in that function did the trick. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/ptxd_lib_kconfig.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/lib/ptxd_lib_kconfig.sh b/scripts/lib/ptxd_lib_kconfig.sh
index 03c6b05b9..e65f583ca 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