14 lines
445 B
Bash
Executable File
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
|