From 052ad58ae1167cb5eb0a8cc4ba802e68f945e3ba Mon Sep 17 00:00:00 2001 From: Bowen Ding Date: Sat, 11 Apr 2020 00:49:06 +0800 Subject: [PATCH] Fix keycheck path --- sigal/plugins/encrypt/encrypt.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sigal/plugins/encrypt/encrypt.py b/sigal/plugins/encrypt/encrypt.py index ee2ffc5..05acc21 100644 --- a/sigal/plugins/encrypt/encrypt.py +++ b/sigal/plugins/encrypt/encrypt.py @@ -230,10 +230,7 @@ def encrypt_files(settings, config, cache, albums, progressbar_target): if encrypt_file(f, full_path, key, gcm_tag): cacheEntry.add(f) - key_check_path = os.path.join( - os.path.join(settings["destination"], 'static'), - 'keycheck.txt' - ) + key_check_path = os.path.join(settings["destination"], 'static', 'keycheck.txt') encrypt_file("keycheck.txt", key_check_path, key, gcm_tag) def encrypt_file(filename, full_path, key, gcm_tag):