cfg/bin/habitica
2016-07-21 16:29:54 +02:00

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