Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fixed up the consumer hook example

Daniel Quinn263d60858f43
diff --git a/scripts/post-consumption-example.sh b/scripts/post-consumption-example.sh
index ed0dbedd4..a4b006de3 100755
--- a/scripts/post-consumption-example.sh
+++ b/scripts/post-consumption-example.sh
@@ -1,13 +1,14 @@
#!/usr/bin/env bash
-DOCUMENT_FILE_NAME=${1}
-DOCUMENT_SOURCE_PATH=${2}
-DOCUMENT_THUMBNAIL_PATH=${3}
-DOCUMENT_DOWNLOAD_URL=${4}
-DOCUMENT_THUMBNAIL_URL=${5}
-DOCUMENT_ID=${6}
-DOCUMENT_CORRESPONDENT=${7}
-DOCUMENT_TAGS=${8}
+PASSPHRASE=${1}
+DOCUMENT_ID=${2}
+DOCUMENT_FILE_NAME=${3}
+DOCUMENT_SOURCE_PATH=${4}
+DOCUMENT_THUMBNAIL_PATH=${5}
+DOCUMENT_DOWNLOAD_URL=${6}
+DOCUMENT_THUMBNAIL_URL=${7}
+DOCUMENT_CORRESPONDENT=${8}
+DOCUMENT_TAGS=${9}
echo "
@@ -22,4 +23,6 @@ following additional information about it:
* Correspondent: ${DOCUMENT_CORRESPONDENT}
* Tags: ${DOCUMENT_TAGS}
+It was consumed with the passphrase ${PASSPHRASE}
+
"