|
@@ -248,7 +248,7 @@ fi
|
248
|
248
|
# read msg
|
249
|
249
|
if [[ ! $(cat $zmsg|grep "$lang"|wc -m) == 0 ]]
|
250
|
250
|
then
|
251
|
|
- index_msg="$(cat $zmsg | jq '."'$lang'".msg[]'|wc -l)";
|
|
251
|
+ index_msg="$(cat $zmsg| jq '."'$lang'".msg[]'|grep ':'|sed 's/\://g;s/\"//g'|awk '{print$1}'|tail -n1)";
|
252
|
252
|
if [[ ! "$index_msg" == "0" ]]||[[ "$index_msg" == "${#set_msg[@]}" ]]
|
253
|
253
|
then
|
254
|
254
|
for (( m_index=0; m_index != $index_msg; m_index++))
|