Compare commits
No commits in common. "c81b7e41856022f9c9282d057b7095e336369515" and "d5c155b82f6b7289d4f6a6fbef7854728c458689" have entirely different histories.
c81b7e4185
...
d5c155b82f
3 changed files with 3 additions and 4 deletions
2
Makefile
2
Makefile
|
|
@ -1,5 +1,5 @@
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# Knowledge Genome - Makefile v. 1.2.1
|
# Knowledge Genome - Makefile v. 1.2.0
|
||||||
# Orchestrates the setup and management of the knowledge base.
|
# Orchestrates the setup and management of the knowledge base.
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,6 @@ provider_create_repo() {
|
||||||
local name="$1"
|
local name="$1"
|
||||||
local desc="$2"
|
local desc="$2"
|
||||||
local private="$3"
|
local private="$3"
|
||||||
local auto_init="${4:-false}" # genomi: true (submodule add esige un branch). master: false (git init locale + push).
|
|
||||||
|
|
||||||
local http_code
|
local http_code
|
||||||
http_code=$(curl -s -o /dev/null -w "%{http_code}" \
|
http_code=$(curl -s -o /dev/null -w "%{http_code}" \
|
||||||
|
|
@ -26,7 +25,7 @@ provider_create_repo() {
|
||||||
\"name\": \"${name}\",
|
\"name\": \"${name}\",
|
||||||
\"description\": \"${desc}\",
|
\"description\": \"${desc}\",
|
||||||
\"private\": ${private},
|
\"private\": ${private},
|
||||||
\"auto_init\": ${auto_init}
|
\"auto_init\": false
|
||||||
}")
|
}")
|
||||||
|
|
||||||
case "$http_code" in
|
case "$http_code" in
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ for entry in "${GENOMES[@]}"; do
|
||||||
info "Processing: ${GENOME_NAME} (cross_source: ${GENOME_CROSS_SOURCE})..."
|
info "Processing: ${GENOME_NAME} (cross_source: ${GENOME_CROSS_SOURCE})..."
|
||||||
|
|
||||||
# 1. Remote Creation (Idempotent)
|
# 1. Remote Creation (Idempotent)
|
||||||
provider_create_repo "${GENOME_NAME}" "${GENOME_DESC}" "true" "true"
|
provider_create_repo "${GENOME_NAME}" "${GENOME_DESC}" "true"
|
||||||
SSH_URL=$(provider_ssh_url "${GENOME_NAME}")
|
SSH_URL=$(provider_ssh_url "${GENOME_NAME}")
|
||||||
|
|
||||||
GENOME_PATH="${WORK_DIR}/${MASTER_REPO}/${GENOME_NAME}"
|
GENOME_PATH="${WORK_DIR}/${MASTER_REPO}/${GENOME_NAME}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue