Skip to content

Instantly share code, notes, and snippets.

@designfrontier
Created March 15, 2019 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save designfrontier/b359547ca25537a44062b32d951525b1 to your computer and use it in GitHub Desktop.
Save designfrontier/b359547ca25537a44062b32d951525b1 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
string="{\"$2\": \"$3\"}"
mount=$1
vault write $mount @<(vault read -format json $mount | jq ".data + $string")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment