From 2dc8fd391ca194a3ac330329812c80cb29170ef9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?b=CA=B0edoh=E2=82=82=20sw=C3=A9?= Date: Sun, 12 Jan 2025 23:31:15 +0500 Subject: [PATCH] Print "!" when trying to enable encryption with no password. --- dobroho_vechora.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dobroho_vechora.bash b/dobroho_vechora.bash index 6221ee5..2dd1927 100755 --- a/dobroho_vechora.bash +++ b/dobroho_vechora.bash @@ -157,7 +157,11 @@ while :; do e) if [ "${enc}" -eq 0 ]; then enc=1 - echo 1 + if [ -z "${DOBROHO_VECHORA_ENCRYPTION_PASSWORD}" ]; then + echo 0'!' + else + echo 1 + fi else enc=0 echo 0