filesToDo is a var so add $ in front of it

This commit is contained in:
HackerNCoder 2024-03-01 01:18:40 +01:00
parent af6cc3fdfa
commit 3ec022c90c

View file

@ -43,7 +43,7 @@ if (( ${#filesToDo[@]} > 0 )); then
echo "| BUILDING |" echo "| BUILDING |"
echo -e "--------------------\x1B[0m" echo -e "--------------------\x1B[0m"
echo echo
for file in filesToDo; do for file in $filesToDo; do
file2=${file%.po} file2=${file%.po}
langcc=${file2#\.\/translations\-} langcc=${file2#\.\/translations\-}
if [[ -n ${langnames[$langcc]} ]]; then if [[ -n ${langnames[$langcc]} ]]; then