From 6da15cee0bbf8fcdc6dbf32cbcd308e79c32f623 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Sun, 2 Apr 2017 23:35:26 +0200 Subject: [PATCH] fix possible missing spaces --- netconf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.5