Browse Source

[fix] Missing $ in var

Co-authored-by: Alexandre Aubin <alex.aubin@mailoo.org>
ljf (zamentur) 3 years ago
parent
commit
941c86f3d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      conf/ynh-vpnclient

+ 1 - 1
conf/ynh-vpnclient

@@ -144,7 +144,7 @@ is_dns_set() {
   current_dns=$(grep -o -P '\s*nameserver\s+\K[ABCDEFabcdef\d.:]+' /etc/resolv.dnsmasq.conf | sort | uniq)
   wanted_dns=$(echo "${ynh_dns}" | sort | uniq)
   [ -e /etc/dhcp/dhclient-exit-hooks.d/ynh-vpnclient ]\
-  && [[ "$current_dns" == "wanted_dns" ]]
+  && [[ "$current_dns" == "$wanted_dns" ]]
 }
 
 set_dns() {