mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
Fix for Ubuntu 14.04
This commit is contained in:
parent
6cd65c593d
commit
2f300aab69
1 changed files with 1 additions and 1 deletions
|
@ -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\","
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue