Report "source _common.sh" as warning instead of error

This commit is contained in:
Alexandre Aubin 2019-03-19 00:10:26 +01:00 committed by GitHub
parent c0e3b2bbde
commit 9181e08814
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -608,7 +608,7 @@ class Script():
if self.name in ["backup", "restore"]:
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():