RedFlag/scripts/git-askpass-token.sh
Fimeg 67e26be2d9 projection: begin the exact-path public epoch
The public tree and its history contain only the listed paths. Earlier projection history remains preserved internally.

Source-Sha: 913fde029b935671833254797f0f20f1eb9fabba

Policy-Sha: 913fde029b935671833254797f0f20f1eb9fabba

Tree-Digest: 180ae530c1058a2a5c89837bdce2d323ae83e669e38590ca72e75b8d92b7262f
2026-09-08 21:59:33 -04:00

18 lines
302 B
Shell
Executable file

#!/usr/bin/env bash
set -euo pipefail
: "${GIT_TOKEN_FILE:?GIT_TOKEN_FILE is required}"
: "${GIT_TOKEN_USERNAME:?GIT_TOKEN_USERNAME is required}"
case "${1:-}" in
*Username*)
printf '%s\n' "$GIT_TOKEN_USERNAME"
;;
*Password*)
cat "$GIT_TOKEN_FILE"
;;
*)
exit 1
;;
esac