From: Michael Rasmussen Date: Sun, 2 Apr 2017 21:35:26 +0000 (+0200) Subject: fix possible missing spaces X-Git-Url: http://git.datanom.net/netconf.git/commitdiff_plain/6da15cee0bbf8fcdc6dbf32cbcd308e79c32f623 fix possible missing spaces --- diff --git a/netconf b/netconf index 9dd9a81..0374493 100644 --- 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: