This commit is contained in:
whoswhip
2024-10-19 15:19:14 -04:00
2 changed files with 9 additions and 4 deletions
+4 -4
View File
@@ -6,10 +6,10 @@
## This is a semi completed script to install Sharpbin on Linux, however it does not set it as a system daemon/service, cause idk how to do that lol
##
sudo mkdir -p /usr/local/bin/Sharpbin
cd /usr/local/bin/Sharpbin
mkdir sharpbin
cd sharpbin
curl -s "https://api.github.com/repos/whoswhip/Sharpbin/releases/latest" | jq -r '.assets[] | select(.name | test("sharpbin-linux.tar$")) | .browser_download_url' | xargs -I {} curl -L -o sharpbin-linux.tar {}
curl -s "https://api.github.com/repos/whoswhip/Sharpbin/releases/latest" | jq -r '.assets[] | select(.name | test("sharpbin-linux-.*\\.tar$")) | .browser_download_url' | xargs -I {} curl -L -o sharpbin-linux.tar {}
tar -xvf sharpbin-linux.tar
chmod +x Sharpbin
@@ -20,4 +20,4 @@ echo "Enter your cloudflare secretkey: "
read secretkey
echo "{ \"CF_TurnstileSiteKey\": \"$sitekey\", \"CF_TurnstileSecret\": \"$secretkey\" }" > config.json
echo "{ \"CF_TurnstileSiteKey\": \"$sitekey\", \"CF_TurnstileSecret\": \"$secretkey\" }" > config.json