From c7f7d6455909565e664b4613aa9a5ef275d58769 Mon Sep 17 00:00:00 2001 From: lemurianmage Date: Sun, 14 Dec 2025 22:47:13 +0100 Subject: fix build stuff etc --- post.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'post.sh') diff --git a/post.sh b/post.sh index 5c5613e..03de817 100755 --- a/post.sh +++ b/post.sh @@ -1,6 +1,12 @@ #!/bin/sh +if [ ! -s API_KEY ]; then + echo "put ur api key in API_KEY pwetty pwease" + exit 1 +fi +api=$(cat API_KEY) ./build.sh + tmpfile=$(mktemp) tar -C public/ -cvz . > $tmpfile trap "rm $tmpfile" EXIT -curl --oauth2-bearer "$1" -Fcontent=@"$tmpfile" https://pages.sr.ht/publish/lemurianmage.srht.site +curl --oauth2-bearer "$api" -Fcontent=@"$tmpfile" https://pages.sr.ht/publish/lemurianmage.srht.site -- cgit v1.2.3