|
@@ -220,7 +220,7 @@ fi
|
220
|
# read msg
|
220
|
# read msg
|
221
|
if [[ ! $(cat $zmsg|grep "$lang"|wc -m) == 0 ]]
|
221
|
if [[ ! $(cat $zmsg|grep "$lang"|wc -m) == 0 ]]
|
222
|
then
|
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
|
if [[ ! "$index_msg" == "0" ]]||[[ "$index_msg" == "${#set_msg[@]}" ]]
|
224
|
if [[ ! "$index_msg" == "0" ]]||[[ "$index_msg" == "${#set_msg[@]}" ]]
|
225
|
then
|
225
|
then
|
226
|
for (( m_index=0; m_index != $index_msg; m_index++))
|
226
|
for (( m_index=0; m_index != $index_msg; m_index++))
|