1
0
mirror of https://github.com/bitwarden/help synced 2025-12-06 00:03:30 +00:00

Corrected error in date syntax (#746)

This commit is contained in:
tangowithfoxtrot
2021-09-21 14:43:42 -05:00
committed by GitHub
parent a986741612
commit 8fb7aedbad

View File

@@ -110,7 +110,7 @@ Notice in this example that the jq invocation must be wrapped in double quotes (
#### macOS
```
bw send template send.text | jq ".name=\"My Send\" | .text.text=\"Secrets I want to share.\" | .password=\"mypassword\" | .deletionDate=\"$(date -uv+14d + "%Y-%m-%dT%H:%M:%SZ")\"" | bw encode | bw send create
bw send template send.text | jq ".name=\"My Send\" | .text.text=\"Secrets I want to share.\" | .password=\"mypassword\" | .deletionDate=\"$(date -uv+14d +"%Y-%m-%dT%H:%M:%SZ")\"" | bw encode | bw send create
```
Notice in this example that the jq invocation must be wrapped in double quotes (`" "`) and use escapes (`\`) for each filter due to a nested `date` variable that configures a `.deletionDate` in the Send.