fix syntax in Loops 'FOR' into func.sh and .bashrc

This commit is contained in:
jimmy 2023-05-21 22:37:35 +02:00
parent baf0646523
commit 21cf5ef9bc
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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}"