mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
[mod] #13: remove bash header check.
This commit is contained in:
parent
8677998310
commit
9253514432
1 changed files with 0 additions and 10 deletions
|
@ -163,7 +163,6 @@ def check_script(path, script_name):
|
||||||
|
|
||||||
script = read_file(script_path)
|
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_sudo_prefix_commands(script) or return_code
|
||||||
return_code = check_verifications_done_before_modifying_system(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
|
return_code = check_non_helpers_usage(script) or return_code
|
||||||
|
@ -171,15 +170,6 @@ def check_script(path, script_name):
|
||||||
return return_code
|
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):
|
def check_sudo_prefix_commands(script):
|
||||||
"""
|
"""
|
||||||
Check if commands are prefix with "sudo"
|
Check if commands are prefix with "sudo"
|
||||||
|
|
Loading…
Reference in a new issue