]> git.datanom.net - netconf.git/blobdiff - netconf
fix possible missing spaces
[netconf.git] / 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: ')
-                    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:
This page took 0.039014 seconds and 5 git commands to generate.