Serghey Rodin пре 11 година
родитељ
комит
2f300aab69
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      bin/v-list-user-ns

+ 1 - 1
bin/v-list-user-ns

@@ -21,7 +21,7 @@ json_list_ns() {
     ns=$(grep "^NS='" $USER_DATA/user.conf |cut -f 2 -d \')
     echo '['
     i=1
-    nslistc=$(echo -e "${ns//,/\n}"|wc -l)
+    nslistc=$(echo -e "${ns//,/\\n}"|wc -l)
     for nameserver in ${ns//,/ };do
         if [ "$i" -ne "$nslistc" ]; then
             echo -e  "\t\"$nameserver\","