Browse Source

Обновить 'zramraid.deb/etc/zramraid/zramraid-config'

Берсенев Валерий 1 year ago
parent
commit
38b5183837
1 changed files with 1 additions and 1 deletions
  1. 1 1
      zramraid.deb/etc/zramraid/zramraid-config

+ 1 - 1
zramraid.deb/etc/zramraid/zramraid-config

@@ -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++))