From 21cf5ef9bc3699c53162bb1e1621dccd5c232bde Mon Sep 17 00:00:00 2001 From: jimmy Date: Sun, 21 May 2023 22:37:35 +0200 Subject: [PATCH] fix syntax in Loops 'FOR' into func.sh and .bashrc --- files/board/arpl/overlayfs/root/.bashrc | 2 +- scripts/func.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/board/arpl/overlayfs/root/.bashrc b/files/board/arpl/overlayfs/root/.bashrc index 8553b175..e5d76ff2 100644 --- a/files/board/arpl/overlayfs/root/.bashrc +++ b/files/board/arpl/overlayfs/root/.bashrc @@ -26,7 +26,7 @@ if [ -f ${BOOTLOADER_PATH}/.locale ]; then fi if [ -d /opt/arpl/lang ]; then - for F in "`ls /opt/arpl/lang/*.mo`" + for F in `ls /opt/arpl/lang/*.mo` do install "${F}" "/usr/share/locale/$(basename $F .mo)/LC_MESSAGES/arpl.mo" done diff --git a/scripts/func.sh b/scripts/func.sh index 1dbd2a03..1fbbb13c 100644 --- a/scripts/func.sh +++ b/scripts/func.sh @@ -13,7 +13,7 @@ function convertpo2mo() { echo "Convert po2mo begin" local DEST_PATH="${1:-lang}" if [ `find ${DEST_PATH}/ -name "*.po" | wc -l` -gt 0 ]; then - for P in "`ls ${DEST_PATH}/*.po`" + for P in `ls ${DEST_PATH}/*.po` do # Use msgfmt command to compile the .po file into a binary .mo file echo "msgfmt ${P} to ${P/.po/.mo}"