def check_scripts():
    """
    Check that the distribution scripts were created correctly
    """
    paths = fnmatch.filter(os.listdir('.'), "chunk*")

    # Check that the files are created correctly
    files = ["launch.sh", "chunk_xyz*", "input.yml"]
    for p in paths:
        p = Path(p)
        for f in files:
            try:
                next(p.glob(f))
            except StopIteration:
                msg = f"There is not file: {f}"
                print(msg)
                raise RuntimeError(msg)