def read_file_hash(hash_path: str):
    """
    Read file hash, which is on the last line of the file
    """
    try:
        with open(hash_path, "r") as f:
            file_hash = [l for l in f.readlines() if l][-1].strip()

    except FileNotFoundError:
        msg = "No input database hash found, rebuild the input db with --force"
        raise FileNotFoundError(msg)

    return file_hash