mirror of
https://github.com/YunoHost/package_linter.git
synced 2024-09-03 20:06:12 +02:00
[fix] do not check swap files from Vim which make the linter fail.
This commit is contained in:
parent
81ddabf580
commit
468e6ff936
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ if __name__ == '__main__':
|
||||||
i, scripts = 0, ["install", "remove", "upgrade", "backup", "restore"]
|
i, scripts = 0, ["install", "remove", "upgrade", "backup", "restore"]
|
||||||
for (dirpath, dirnames, filenames) in os.walk(os.path.join(app_path, "scripts")):
|
for (dirpath, dirnames, filenames) in os.walk(os.path.join(app_path, "scripts")):
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
if filename not in scripts:
|
if filename not in scripts and filename[-4:] != ".swp":
|
||||||
scripts.append(filename)
|
scripts.append(filename)
|
||||||
while i < len(scripts):
|
while i < len(scripts):
|
||||||
check_script(app_path, scripts[i])
|
check_script(app_path, scripts[i])
|
||||||
|
|
Loading…
Reference in a new issue