]> git.datanom.net - netconf.git/commitdiff
fix possible missing spaces
authorMichael Rasmussen <mir@datanom.net>
Sun, 2 Apr 2017 21:35:26 +0000 (23:35 +0200)
committerMichael Rasmussen <mir@datanom.net>
Sun, 2 Apr 2017 21:35:26 +0000 (23:35 +0200)
netconf

diff --git a/netconf b/netconf
index 9dd9a81f4056f484c7463fa4e41249805570d7e1..0374493f91cb00adefba8dc70d5748652b00d98d 100644 (file)
--- a/netconf
+++ b/netconf
@@ -160,8 +160,8 @@ def main():
                     print
                     while not dns:
                         dns = raw_input('Enter nameserver: ')
                     print
                     while not dns:
                         dns = raw_input('Enter nameserver: ')
-                    cmd = "echo 'nameserver %s' >> /etc/resolv.conf" % dns
-                    cmd += '&& cp /etc/nsswitch.conf{,.bak}'
+                    cmd = "echo 'nameserver %s' >> /etc/resolv.conf " % dns
+                    cmd += '&& cp /etc/nsswitch.conf{,.bak} '
                     cmd += '&& cp /etc/nsswitch.{dns,conf}'
                     (out, err) = runcmd(cmd)
                     if err:
                     cmd += '&& cp /etc/nsswitch.{dns,conf}'
                     (out, err) = runcmd(cmd)
                     if err:
This page took 0.030887 seconds and 5 git commands to generate.