1
0
Fork 0
mirror of synced 2024-12-12 18:35:46 -05:00

Fix some typos and code style

This commit is contained in:
Luis López 2020-02-17 11:53:29 +01:00 committed by Tim Byrne
parent 7698adfd77
commit 9fe5377749
No known key found for this signature in database
GPG key ID: 14DB4FC2465A4B12

30
yadm
View file

@ -870,13 +870,13 @@ function _decrypt_from() {
local output_archive
output_archive="$1"
local yadm_crypher
yadm_crypher="$(config yadm.cypher)"
if [ -z "$yadm_crypher" ]; then
yadm_crypher="gpg"
local yadm_cipher
yadm_cipher="$(config yadm.cipher)"
if [ -z "$yadm_cipher" ]; then
yadm_cipher="gpg"
fi
case "$yadm_crypher" in
case "$yadm_cipher" in
gpg)
require_gpg
@ -887,11 +887,11 @@ function _decrypt_from() {
require_openssl
OPENSSL_CIPHERNAME="$(_get_openssl_ciphername)"
$OPENSSL_PROGRAM enc -d -$OPENSSL_CIPHERNAME -salt -in "$output_archive"
$OPENSSL_PROGRAM enc -d "-${OPENSSL_CIPHERNAME}" -salt -in "$output_archive"
;;
*)
error_out "Unknown cypher '$yadm_crypher'"
error_out "Unknown cipher '$yadm_cipher'"
;;
esac
@ -903,13 +903,13 @@ function _encrypt_to() {
local output_archive
output_archive="$1"
local yadm_crypher
yadm_crypher="$(config yadm.cypher)"
if [ -z "$yadm_crypher" ]; then
yadm_crypher="gpg"
local yadm_cipher
yadm_cipher="$(config yadm.cipher)"
if [ -z "$yadm_cipher" ]; then
yadm_cipher="gpg"
fi
case "$yadm_crypher" in
case "$yadm_cipher" in
gpg)
require_gpg
@ -930,11 +930,11 @@ function _encrypt_to() {
require_openssl
OPENSSL_CIPHERNAME="$(_get_openssl_ciphername)"
$OPENSSL_PROGRAM enc -e -$OPENSSL_CIPHERNAME -salt -out "$output_archive"
$OPENSSL_PROGRAM enc -e "-${OPENSSL_CIPHERNAME}" -salt -out "$output_archive"
;;
*)
error_out "Unknown cypher '$yadm_crypher'"
error_out "Unknown cipher '$yadm_cipher'"
;;
esac
@ -1171,7 +1171,7 @@ yadm.auto-exclude
yadm.auto-perms
yadm.auto-private-dirs
yadm.cygwin-copy
yadm.cypher
yadm.cipher
yadm.git-program
yadm.gpg-perms
yadm.gpg-program