Skip to content

Commit

Permalink
upload: make buzzheavier jq free
Browse files Browse the repository at this point in the history
Signed-off-by: ImSpiDy <[email protected]>
  • Loading branch information
wHo-EM-i authored and ImSpiDy committed Sep 13, 2024
1 parent e108581 commit 19599fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ fi

if [ $UP == 8 ]; then
FN="$(basename $FP)"
BZUP=https://buzzheavier.com/f/$(curl -#o - -T "$FP" "https://w.buzzheavier.com/t/$FN" | jq -r '.id')
echo -e "Started uploading $FN on Buzzheavier..."
BZUP=https://buzzheavier.com/f/$(curl -#o - -T "$FP" https://w.buzzheavier.com/t/$FN | cut -d : -f 2 | cut -d } -f 1 | grep -Po '[^"]*')
echo $BZUP
fi

0 comments on commit 19599fa

Please sign in to comment.