From 45b320cf9c4a9f0c6d9fa5255ef02656f049d19a Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Sun, 18 Dec 2016 02:36:58 +0100 Subject: [PATCH] [fix] unexisting variable --- package_linter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 7c20d1d..4c1784e 100755 --- a/package_linter.py +++ b/package_linter.py @@ -132,7 +132,8 @@ def check_script(path, script_name): if check_file_exist(script_path) == 0: return print (c.BOLD + c.HEADER + "\n>>>>", - scripts[i].upper(), "SCRIPT <<<<" + c.END) + script_name.upper(), "SCRIPT <<<<" + c.END) + script = read_file(script_path) check_script_header_presence(script) check_sudo_prefix_commands(script)