mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
[fix] remove curl and wget check which doesn't works.
This commit is contained in:
parent
f223d7a571
commit
c5f0ca39ae
1 changed files with 0 additions and 2 deletions
|
@ -111,8 +111,6 @@ def check_script(path, script_name):
|
||||||
check_script_header_presence(script)
|
check_script_header_presence(script)
|
||||||
check_sudo_prefix_commands(script)
|
check_sudo_prefix_commands(script)
|
||||||
check_verifications_done_before_modifying_system(script)
|
check_verifications_done_before_modifying_system(script)
|
||||||
if "wget" in script or "curl" in script:
|
|
||||||
print("You should not fetch sources from internet with curl or wget for security reasons.")
|
|
||||||
|
|
||||||
def check_script_header_presence(script):
|
def check_script_header_presence(script):
|
||||||
if "#!/bin/bash" in script[0]: print_right("Script starts with \"#!/bin/bash\"")
|
if "#!/bin/bash" in script[0]: print_right("Script starts with \"#!/bin/bash\"")
|
||||||
|
|
Loading…
Reference in a new issue