From 7ff6f1a5048d102a2e80d731037fde756b636b92 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sun, 2 Dec 2018 10:13:39 +0100 Subject: [PATCH] Fix -K support --- bin/var_editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/var_editor.py b/bin/var_editor.py index b2a7966..72a5935 100755 --- a/bin/var_editor.py +++ b/bin/var_editor.py @@ -19,7 +19,7 @@ def main(): if opt == '-k': key = val elif opt == '-K': - key = open(arg, 'rb').read() + key = open(val, 'rb').read() if key == '': usage()