From 19599fab028cb782e642d4368ef9df7a58311e0f Mon Sep 17 00:00:00 2001 From: wHoEMi Date: Fri, 13 Sep 2024 11:20:09 +0530 Subject: [PATCH] upload: make buzzheavier jq free Signed-off-by: ImSpiDy --- upload.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/upload.sh b/upload.sh index 4902a9f..08065ca 100644 --- a/upload.sh +++ b/upload.sh @@ -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