def _analyse_gdal_output(output):
    """analyse the output from gpt to find if it executes successfully."""

    # return false if "Error" is found.
    if b'error' in output.lower():
        return False
    # return true if "100%" is found.
    elif b'100 - done' in output.lower():
        return True
    # otherwise return false.
    else:
        return False