Merge pull request #52 from Kanin/master

Stop echo from adding a new line
This commit is contained in:
Tanner 2020-10-04 23:41:06 -07:00 committed by GitHub
commit 892418436e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ if [[ $(file --mime-type -b $temp_file) != "image/png" ]]; then
fi
image_url=$(curl -X POST -F "fdata=@"$temp_file -F "key="$key -v "$url" 2>/dev/null)
echo $image_url | xclip -sel c
echo -n $image_url | xclip -sel c
notify-send "Image URL copied to clipboard" "$image_url" -a "Flameshot" -i $temp_file
rm $temp_file
```