From 0dd5a6e77cb1b0f27ff12d79dec6e87834065cb4 Mon Sep 17 00:00:00 2001 From: Alain Date: Sat, 16 Sep 2017 00:05:48 +0200 Subject: [PATCH] line 32 jq => jqn running the command with `jq` gets a compile error on Sierra. Running with `jqn` passes CREDENTIALS to env var. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 02674a1..28ce8df 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Locate the spreadsheet you want to work with, take the id from Google spreadshee If you wish to directly pass the base64 stringified JSON as `--credentials` parameter you might first want to only keep `client_email` and `private_key` using [jq.node](https://github.com/FGRibreau/jq.node) like so: ```bash -export CREDENTIALS=$(cat ~/myproject-8cbb20000000.json | jq -r btoa 'pick(["client_email", "private_key"]) | JSON.stringify | btoa') +export CREDENTIALS=$(cat ~/myproject-8cbb20000000.json | jqn -r btoa 'pick(["client_email", "private_key"]) | JSON.stringify | btoa') ``` ## 😇 Documentation