|
@@ -220,7 +220,7 @@ fi
|
220
|
220
|
# read msg
|
221
|
221
|
if [[ ! $(cat $zmsg|grep "$lang"|wc -m) == 0 ]]
|
222
|
222
|
then
|
223
|
|
- index_msg="$(cat $zmsg | jq '."'$lang'".msg[]'|wc -l)";
|
|
223
|
+ index_msg="$(cat $zmsg| jq '."'$lang'".msg[]'|grep ':'|sed 's/\://g;s/\"//g'|awk '{print$1}'|tail -n1)";
|
224
|
224
|
if [[ ! "$index_msg" == "0" ]]||[[ "$index_msg" == "${#set_msg[@]}" ]]
|
225
|
225
|
then
|
226
|
226
|
for (( m_index=0; m_index != $index_msg; m_index++))
|