Printf "bug" (Deepsource was upset)

pull/73/head
Charlie 3 years ago committed by GitHub
parent 4e736cc140
commit db7c3c9281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -15,6 +15,6 @@ URL=$(curl -X POST \
-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
printf "%s" "$URL" | xclip -sel clip
rm "$IMAGEPATH$IMAGENAME.png" # Delete the image locally

Loading…
Cancel
Save