mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Do not fetch argument from manifest using foo=
This commit is contained in:
parent
aefe62a28e
commit
56f8cb6dc7
1 changed files with 6 additions and 0 deletions
|
@ -867,6 +867,12 @@ class Script():
|
|||
"You can use 'ynh_print_info' or 'ynh_script_progression' for this."
|
||||
)
|
||||
|
||||
if self.name == "install" and self.containsregex(r"^\w+\=\$\{?[0-9]"):
|
||||
print_error(
|
||||
"Do not fetch arguments from manifest using variable=$N (e.g."
|
||||
" domain=$1 ...) Instead, use name=$YNH_APP_ARG_NAME"
|
||||
)
|
||||
|
||||
if self.name == "install":
|
||||
if self.contains("/etc/apt/sources.list") \
|
||||
or (os.path.exists(self.app_path + "/scripts/_common.sh") and "/etc/apt/sources.list" in open(self.app_path+"/scripts/_common.sh").read() and "ynh_add_repo" not in open(self.app_path+"/scripts/_common.sh").read()):
|
||||
|
|
Loading…
Reference in a new issue