From 925351443234073d31ace2fc7de471c8acc44ba5 Mon Sep 17 00:00:00 2001 From: Moul Date: Fri, 27 Jan 2017 22:00:52 +0100 Subject: [PATCH] [mod] #13: remove bash header check. --- package_linter.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/package_linter.py b/package_linter.py index cb8a5f2..b88dfb2 100755 --- a/package_linter.py +++ b/package_linter.py @@ -163,7 +163,6 @@ def check_script(path, script_name): script = read_file(script_path) - return_code = check_script_header_presence(script) or return_code return_code = check_sudo_prefix_commands(script) or return_code return_code = check_verifications_done_before_modifying_system(script) or return_code return_code = check_non_helpers_usage(script) or return_code @@ -171,15 +170,6 @@ def check_script(path, script_name): return return_code -def check_script_header_presence(script): - if "#!/bin/bash" in script[0]: - print_right("Script starts with \"#!/bin/bash\"") - return 0 - else: - print_wrong("Script must start with \"#!/bin/bash\"") - return 1 - - def check_sudo_prefix_commands(script): """ Check if commands are prefix with "sudo"