forked from Archive/PX4-Autopilot
Merge pull request #890 from PX4/romfs_clean
romfs pruner: fix filename check
This commit is contained in:
commit
5e9639ad9b
|
@ -57,7 +57,7 @@ def main():
|
|||
for (root, dirs, files) in os.walk(args.folder):
|
||||
for file in files:
|
||||
# only prune text files
|
||||
if ".zip" in file or ".bin" or ".swp" in file:
|
||||
if ".zip" in file or ".bin" in file or ".swp" in file:
|
||||
continue
|
||||
|
||||
file_path = os.path.join(root, file)
|
||||
|
|
Loading…
Reference in New Issue