Skip to content

Commit 2f300aa

Browse files
committed
Fix for Ubuntu 14.04
1 parent 6cd65c5 commit 2f300aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/v-list-user-ns

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ json_list_ns() {
2121
ns=$(grep "^NS='" $USER_DATA/user.conf |cut -f 2 -d \')
2222
echo '['
2323
i=1
24-
nslistc=$(echo -e "${ns//,/\n}"|wc -l)
24+
nslistc=$(echo -e "${ns//,/\\n}"|wc -l)
2525
for nameserver in ${ns//,/ };do
2626
if [ "$i" -ne "$nslistc" ]; then
2727
echo -e "\t\"$nameserver\","

0 commit comments

Comments
 (0)