From 4e736cc140a3603b40558c12a98f8fe4d6b2abf5 Mon Sep 17 00:00:00 2001 From: Charlie <45357714+GoodPro712@users.noreply.github.com> Date: Fri, 24 Sep 2021 15:38:25 +1000 Subject: [PATCH] Printf comment --- flameshot_example.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flameshot_example.sh b/flameshot_example.sh index c2ad791..29d58a4 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 (http(s)) +DOMAIN="" # Your upload domain (without 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,7 @@ URL=$(curl -X POST \ -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 "$URL" | xclip -sel clip rm "$IMAGEPATH$IMAGENAME.png" # Delete the image locally