From fbe74fd5aef6e26070e9b10357604dda3bd2d842 Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 15 Aug 2013 09:25:37 +0200 Subject: couch-doc-diff: diff of a document on the couch (feature 3485) Added the bash script couch-doc-diff. It runs a diff between the content of the couch document specified as the first parameter and the second parameter. Diff returns 0 if there is no difference. This way you can tell the data is already on the couch. The diff will ignore changes to whitespaces as these are usually irrelevant for security json docs. --- files/couch-doc-diff | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 files/couch-doc-diff (limited to 'files') diff --git a/files/couch-doc-diff b/files/couch-doc-diff new file mode 100644 index 0000000..964d312 --- /dev/null +++ b/files/couch-doc-diff @@ -0,0 +1,2 @@ +#!/bin/bash +diff -w <(curl -s --netrc-file /etc/couchdb/couchdb.netrc $1 ) <(echo '$2') -- cgit v1.2.3