11 lines
201 B
Bash
Executable File
11 lines
201 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
auth_dir=${SAMMO_GIT_AUTH_DIR:-/srv/data/git-auth}
|
|
|
|
case "${1:-}" in
|
|
*Username*) cat "$auth_dir/https-username" ;;
|
|
*Password*) cat "$auth_dir/https-token" ;;
|
|
*) exit 1 ;;
|
|
esac
|