Yokan / rebuild
Course 1 8624561

init-private-submodules.sh

scripts/init-private-submodules.sh

configuration / resource18 lines
1#!/usr/bin/env bash2# Codemagic supplies these variables from the private_git_credentials group.3set +x4set -eu56: "${FORGEJO_USERNAME:?Set FORGEJO_USERNAME in private_git_credentials}"7: "${FORGEJO_TOKEN:?Set FORGEJO_TOKEN in private_git_credentials}"89# Keep credentials out of clone URLs and files. The helper applies only to this10# HTTPS host and is inherited by Git's recursive submodule clone processes.11GIT_TERMINAL_PROMPT=0 git \12  -c credential.helper= \13  -c 'credential.https://git.friedcutlet.com.helper=!f() {14    if [ "$1" = get ]; then15      printf "username=%s\npassword=%s\n" "$FORGEJO_USERNAME" "$FORGEJO_TOKEN"16    fi17  }; f' \18  submodule update --init --recursive19

Search chapters, reference and source filenames.