Skip to content

Commit

Permalink
Only print timezone when running with --print-only
Browse files Browse the repository at this point in the history
See discussion on #18.
  • Loading branch information
cdown committed Mar 17, 2017
1 parent a3a7e76 commit f880e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tzupdate.py
Expand Up @@ -220,7 +220,7 @@ def main(argv=None, services=SERVICES):
t.terminate()

if args.print_only:
print('Detected timezone is %s.' % timezone)
print(timezone)
else:
link_localtime(timezone, args.zoneinfo_path, args.localtime_path)
write_debian_timezone(timezone, args.debian_timezone_path)
Expand Down

0 comments on commit f880e59

Please sign in to comment.