diff --git a/.scripts/UpdateMoose.py b/.scripts/UpdateMoose.py index f4c2703185..f8bfde8da6 100644 --- a/.scripts/UpdateMoose.py +++ b/.scripts/UpdateMoose.py @@ -18,14 +18,14 @@ import filecmp def findMoose(path: Path): # Loop over all lua files (recursively) for f in path.rglob("*.lua"): - if f.name.lower().startswith("moose"): + if f.name.lower().startswith("moose") and not f.name.lower().endswith("msrs"): print(f"Found Moose file as: {f}") return f def copyScripts(path: Path, topath): # Loop over all lua files (recursively) for f in path.rglob("*.lua"): - if not f.name.lower().startswith("moose"): + if not f.name.lower().startswith("moose") and not f.name.lower().endswith("msrs"): print(f"Found script: {f}") copy(f, topath)