|
@@ -248,7 +248,7 @@ fi
|
248
|
# read msg
|
248
|
# read msg
|
249
|
if [[ ! $(cat $zmsg|grep "$lang"|wc -m) == 0 ]]
|
249
|
if [[ ! $(cat $zmsg|grep "$lang"|wc -m) == 0 ]]
|
250
|
then
|
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
|
if [[ ! "$index_msg" == "0" ]]||[[ "$index_msg" == "${#set_msg[@]}" ]]
|
252
|
if [[ ! "$index_msg" == "0" ]]||[[ "$index_msg" == "${#set_msg[@]}" ]]
|
253
|
then
|
253
|
then
|
254
|
for (( m_index=0; m_index != $index_msg; m_index++))
|
254
|
for (( m_index=0; m_index != $index_msg; m_index++))
|