mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
Report "source _common.sh" as warning instead of error
This commit is contained in:
parent
c0e3b2bbde
commit
9181e08814
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ class Script():
|
||||||
|
|
||||||
if self.name in ["backup", "restore"]:
|
if self.name in ["backup", "restore"]:
|
||||||
if self.contains("source _common.sh") or self.contains("source ./_common.sh"):
|
if self.contains("source _common.sh") or self.contains("source ./_common.sh"):
|
||||||
print_error("In the context of backup and restore script, you should load _common.sh with \"source ../settings/scripts/_common.sh\"")
|
print_warning("In the context of backup and restore script, you should load _common.sh with \"source ../settings/scripts/_common.sh\"")
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in a new issue