Files
purpur-fantasy-stick/scripts/git-askpass.sh
T
dmg 05f9627cf9
CI / build (push) Successful in 7m13s
Release / release (push) Failing after 7m47s
build(fantasy-stick): bootstrap tested plugin and release tools
2026-09-16 21:22:01 -04:00

14 lines
445 B
Bash
Executable File

#!/bin/sh
# Git captures stdout through its askpass pipe. Never invoke with a credential argument.
set +x
case "${1-}" in
"Username for 'https://git.garvis.dev':"|"Username for 'https://git.garvis.dev': ")
printf '%s\n' dmg
;;
"Password for 'https://dmg@git.garvis.dev':"|"Password for 'https://dmg@git.garvis.dev': ")
test -n "${RELEASE_CREDENTIAL-}" || exit 1
printf '%s\n' "$RELEASE_CREDENTIAL"
;;
*) exit 1 ;;
esac