Use consistent bash5 style for conditionals and quoting
This commit is contained in:
1 parent
d2acf3b6ba
commit
7514ae7dcf
113 files changed
+289
-287
No files matched your search
@@ -1,6 +1,6 @@
|
||||
echo "Fix DHCP DNS to allow VPN DNS override"
|
||||
|
||||
if [ -f /etc/systemd/resolved.conf ]; then
|
||||
if [[ -f /etc/systemd/resolved.conf ]]; then
|
||||
if grep -q "^DNS=$" /etc/systemd/resolved.conf && grep -q "^FallbackDNS=$" /etc/systemd/resolved.conf; then
|
||||
sudo sed -i '/^DNS=$/d; /^FallbackDNS=$/d' /etc/systemd/resolved.conf
|
||||
sudo systemctl restart systemd-resolved
|
||||
|
||||
Reference in new issue
Block a user