From 8797d25b56777e8ee3a88773b5b5ece1869d2e1f Mon Sep 17 00:00:00 2001 From: haui Date: Mon, 2 Feb 2026 12:22:52 +0100 Subject: [PATCH] export instance to .env and make .env-example --- .env-example | 2 ++ main.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .env-example diff --git a/.env-example b/.env-example new file mode 100644 index 0000000..d48d0bf --- /dev/null +++ b/.env-example @@ -0,0 +1,2 @@ +UserToken='***' +TargetInstance='***' diff --git a/main.sh b/main.sh index 73b2225..689d378 100755 --- a/main.sh +++ b/main.sh @@ -11,7 +11,7 @@ result=$(curl -X POST \ -H "Authorization: Bearer ${Authorization}" \ -H "Idempotency-Key: ${IdempotencyKey}" \ -d "status=${status}" \ - "https://mastodon.giftedmc.com/api/v1/statuses") # HTTP/1.1 + "${TargetInstance}/api/v1/statuses") # HTTP/1.1 echo "${result}"