diff --git a/dobroho_vechora.bash b/dobroho_vechora.bash index d1778a4..d2a0a9c 100755 --- a/dobroho_vechora.bash +++ b/dobroho_vechora.bash @@ -63,7 +63,7 @@ case "${mode}" in esac encrypt() { - if [ "${enc}" -eq 1 ] | [ -z "${DOBROHO_VECHORA_ENCRYPTION_PASSWORD}" ]; then + if [ "${enc}" -eq 0 ] || [ -z "${DOBROHO_VECHORA_ENCRYPTION_PASSWORD}" ]; then cat return 0 fi @@ -71,7 +71,7 @@ encrypt() { } decrypt() { - if [ "${enc}" -eq 1 ] | [ -z "${DOBROHO_VECHORA_ENCRYPTION_PASSWORD}" ]; then + if [ "${enc}" -eq 0 ] || [ -z "${DOBROHO_VECHORA_ENCRYPTION_PASSWORD}" ]; then cat return 0 fi