Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/161c3f865e43f16a7f659866d1b509fbfde7793c
You should set ROOT_URL correctly, otherwise the web may not work correctly.
1 changed files with
18 additions and
11 deletions
@ -5,16 +5,23 @@ KEY="" # Your ass upload token
DOMAIN = "" # Your upload domain (without http:// or https://)
flameshot config -f " $IMAGENAME " # Make sure that Flameshot names the file correctly
flameshot gui -r -p " $IMAGEPATH " # Prompt the screenshot GUI
flameshot gui -r -p " $IMAGEPATH " > /dev/null # Prompt the screenshot GUI , also append the random gibberish to /dev/null
# Upload the image and copy the response URL
URL = $( curl -X POST \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-H "User-Agent: ShareX/13.4.0" \
-H " Authorization: $KEY " \
-F " file=@ $IMAGEPATH $IMAGENAME .png " " https:// $DOMAIN / " | grep -Po '(?<="resource":")[^"]+' )
# printf instead of echo as echo appends a newline
printf "%s" " $URL " | xclip -sel clip
FILE = " $IMAGEPATH $IMAGENAME .png " # File path and file name combined
rm " $IMAGEPATH $IMAGENAME .png " # Delete the image locally
# Check if file exists to handle Curl and rm errors
# then upload the image and copy the response URL
if [ -f " $FILE " ] ; then
echo " $FILE exists. "
URL = $( curl -X POST \
-H "Content-Type: multipart/form-data" \
-H "Accept: application/json" \
-H "User-Agent: ShareX/13.4.0" \
-H " Authorization: $KEY " \
-F " file=@ $IMAGEPATH $IMAGENAME .png " " https:// $DOMAIN / " | grep -Po '(?<="resource":")[^"]+' )
# printf instead of echo as echo appends a newline
printf "%s" " $URL " | xclip -sel clip
rm " $IMAGEPATH $IMAGENAME .png " # Delete the image locally
else
echo "Aborted."
fi