Ensuring hide is compat with gnupg2.1

This commit is contained in:
Carlos Hernandez 2017-09-13 16:04:56 -06:00
parent 6ced466a84
commit d10c63c67f

View File

@ -139,7 +139,7 @@ function hide {
if [[ "$fsdb_file_hash" != "$file_hash" ]]; then
# shellcheck disable=2086
$gpg_local --use-agent --yes --trust-model=always --encrypt \
$recipients -o "$output_path" "$input_path"
$recipients -o "$output_path" "$input_path" > /dev/null 2>&1
# If -u option was provided, it will update unencrypted file hash
local key="$filename"
local hash="$file_hash"