from typing import Literal


def sh_bool(boolean: bool) -> Literal["yes", "no"]:
    """
    Formats a boolean to be passed to a bash script environment (eg run_job.sh)

    :param boolean: A boolean flag (True or False)
    :type boolean: bool
    :return: 'yes' or 'no'
    :rtype: str
    """
    if boolean:
        return "yes"

    return "no"