X-Git-Url: https://git.ralfj.de/dyn-nsupdate.git/blobdiff_plain/11b054f64b837660290e297c390aa09b0b57e8d6..556b6fb987e04d7898c5520298c4e1f07b234434:/server-scripts/update?ds=sidebyside diff --git a/server-scripts/update b/server-scripts/update index bd4ae83..183f2db 100755 --- a/server-scripts/update +++ b/server-scripts/update @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2 # Copyright (c) 2014, Ralf Jung # All rights reserved. # @@ -57,9 +57,9 @@ if p.returncode or stderr or stdout: if stdout: print stdout if stderr: print stderr else: - print "good", + out = "good" if ip is not None: - print ip, + out += " "+ip if ipv6 is not None: - print ipv6, - print + out += " "+ipv6 + print out