6 lines
252 B
Bash
Executable file
6 lines
252 B
Bash
Executable file
#!/bin/bash
|
|
|
|
HABITICA_API_TOKEN=$(vault read -field=api_token /secret/private/habitica)
|
|
HABITICA_USER_ID=$(vault read -field=user_id /secret/private/habitica)
|
|
|
|
curl -s -H "x-api-key: ${HABITICA_API_TOKEN}" -H "x-api-user: ${HABITICA_USER_ID}" "$@" <&0
|