From eb33ecd55984f34e890aca96e706ddb00528f2b4 Mon Sep 17 00:00:00 2001 From: brent s Date: Sat, 5 May 2018 07:05:15 -0400 Subject: [PATCH] todo, cleaning up timestamp file --- gpg/sksdump.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gpg/sksdump.py b/gpg/sksdump.py index 73f5238..6f0ea3b 100755 --- a/gpg/sksdump.py +++ b/gpg/sksdump.py @@ -17,6 +17,8 @@ NOWstr = NOW.strftime('%Y-%m-%d') # TODO: # - cleanup/rotation should be optional +# - turn into a class so we can more easily share vars across functions +# - also, create the "CURRENT" symlink *AFTER* the dump completes? cfgfile = os.path.join(os.environ['HOME'], '.config', 'optools', 'sksdump.ini') @@ -366,7 +368,7 @@ def main(): str(datetime.datetime.utcnow()))) with open(os.path.join(args['destdir'], 'LAST_COMPLETED_DUMP.txt'), 'w') as f: - f.write(str(datetime.datetime.utcnow())) + f.write(str(datetime.datetime.utcnow()) + ' UTC\n') if __name__ == '__main__':