From 974e9f7fa2a70b05f9f3cd58e4e595b8b9123fae Mon Sep 17 00:00:00 2001 From: Matei Radu <37928133+MateiSR@users.noreply.github.com> Date: Tue, 16 Jul 2024 00:27:54 +0300 Subject: [PATCH] fix: fix flameshot script in readme (#575) this commit fixes the json parsing in the example flameshot script. the previous example would just return a `jq` compile error --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68b4c3ea..df248cc4 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ To upload files using flameshot we will use a script. Replace $TOKEN and $HOST w DATE=$(date '+%h_%Y_%d_%I_%m_%S.png'); flameshot gui -r > ~/Pictures/$DATE; -curl -H "Content-Type: multipart/form-data" -H "authorization: $TOKEN" -F file=@$1 $HOST/api/upload | jq -r 'files[0].url' | xsel -ib +curl -H "Content-Type: multipart/form-data" -H "authorization: $TOKEN" -F file=@$1 $HOST/api/upload | jq -r '.files[0]' | xsel -ib ``` # Contributing @@ -169,4 +169,4 @@ Create a pull request on GitHub. If your PR does not pass the action checks, the # Documentation -Documentation source code is located in [diced/zipline-docs](https://github.com/diced/zipline-docs), and can be accessed [here](https://zipl.vercel.app). \ No newline at end of file +Documentation source code is located in [diced/zipline-docs](https://github.com/diced/zipline-docs), and can be accessed [here](https://zipl.vercel.app).