From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Roland Hieber Date: Wed, 4 Sep 2019 14:58:16 +0200 Message-Id: <20190904125816.538-1-rhi@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH] ptxd_normalize_config: fix typo in variable name List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Roland Hieber A simple s/nomalized/normalized/g in that function did the trick. Signed-off-by: Roland Hieber --- 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