20 lines
378 B
Bash
Executable File
20 lines
378 B
Bash
Executable File
#!/usr/bin/env sh
|
|
set -eu
|
|
|
|
case "${1:-}" in
|
|
*Username*)
|
|
if [ -s /runtime-access/gitea-username ]; then
|
|
tr -d '\r\n' </runtime-access/gitea-username
|
|
else
|
|
printf '%s' hermes-automation
|
|
fi
|
|
printf '\n'
|
|
;;
|
|
*Password*)
|
|
test -s /runtime-access/gitea-token
|
|
tr -d '\r\n' </runtime-access/gitea-token
|
|
printf '\n'
|
|
;;
|
|
*) exit 1 ;;
|
|
esac
|