From 8031758fcb3053fbd595cdae8567bb3aab7f1f8a Mon Sep 17 00:00:00 2001 From: Charlie <45357714+GoodPro712@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:33:23 +1000 Subject: [PATCH] Printf instead of echo --- flameshot_example.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flameshot_example.sh b/flameshot_example.sh index 9f0b280..c2ad791 100644 --- a/flameshot_example.sh +++ b/flameshot_example.sh @@ -2,7 +2,7 @@ IMAGEPATH="$HOME/Pictures/" # Where to store screenshots before they're deleted IMAGENAME="ass" # Not really important, tells Flameshot what file to send and delete KEY="" # Your ass upload token -DOMAIN="" # Your upload domain +DOMAIN="" # Your upload domain (http(s)) flameshot config -f "$IMAGENAME" # Make sure that Flameshot names the file correctly flameshot gui -r -p "$IMAGEPATH" # Prompt the screenshot GUI @@ -14,6 +14,6 @@ URL=$(curl -X POST \ -H "User-Agent: ShareX/13.4.0" \ -H "Authorization: $KEY" \ -F "file=@$IMAGEPATH$IMAGENAME.png" "https://$DOMAIN/" | grep -Po '(?<="resource":")[^"]+') -echo "$URL" | xclip -sel clip +printf "$URL" | xclip -sel clip rm "$IMAGEPATH$IMAGENAME.png" # Delete the image locally