doc encrypt on change option for hide cmd

pull/107/head
Carlos Hernandez 7 years ago
parent af98f73142
commit fb29858dae

@ -27,7 +27,7 @@ It is possible to modify the names of the encrypted files by setting \fBSECRETS_
\-v \- verbose, shows extra information\.
\-c \- deletes encrypted files before creating new ones\.
\-d \- deletes unencrypted files after encryption\.
\-u \- updates/adds hash of unecrypted files to path mappings, (encrypts files on change only)\.
\-m \- encrypt files only when modified\.
\-h \- shows help\.
.
.fi

@ -17,7 +17,7 @@ It is possible to modify the names of the encrypted files by setting `SECRETS_EX
-v - verbose, shows extra information.
-c - deletes encrypted files before creating new ones.
-d - deletes unencrypted files after encryption.
-u - updates/adds hash of unecrypted files to path mappings (encrypts files only on change).
-m - encrypt files only when modified.
-h - shows help.

@ -86,13 +86,13 @@ function hide {
OPTIND=1
while getopts 'cduvh' opt; do
while getopts 'cdmvh' opt; do
case "$opt" in
c) clean=1;;
d) delete=1;;
u) fsdb_update_hash=1;;
m) fsdb_update_hash=1;;
v) verbose='v';;
@ -142,7 +142,7 @@ function hide {
# shellcheck disable=2086
$gpg_local --use-agent --yes --trust-model=always --encrypt \
$recipients -o "$output_path" "$input_path" > /dev/null 2>&1
# If -u option was provided, it will update unencrypted file hash
# If -m option was provided, it will update unencrypted file hash
local key="$filename"
local hash="$file_hash"
# Update file hash if required in fsdb

Loading…
Cancel
Save