INNER CODE UNIT · Shell

raw_template_dir

BastilleBSD/bastille · usr/local/share/bastille/bootstrap.sh:496

    raw_template_dir=${bastille_templatesdir}/${user}/${repo}

    ## support for non-git
    if ! which -s git; then
        error_notify "[ERROR]: Git not found."
        error_exit "Not yet implemented."
    else
        if [ ! -d "${raw_template_dir}/.git" ]; then
            git clone "${url}" "${raw_template_dir}" ||\
                error_notify "Clone unsuccessful."
        elif [ -d "${raw_template_dir}/.git" ]; then
            git -C "${raw_template_dir}" pull ||\
                error_notify "Template update unsuccessful."
        fi
    fi

    if [ ! -f ${raw_template_dir}/Bastillefile ]; then
        # Extract template in project/template format

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…