Browse Source

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

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

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

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