From e99838006b3e7a7bc88e04136f37efe989afb480 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Fri, 15 Oct 2021 00:57:22 -0400 Subject: [PATCH] print error message if the passwd file is missing --- kaya | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kaya b/kaya index 51df49a..17e6e33 100755 --- a/kaya +++ b/kaya @@ -171,6 +171,12 @@ main() { create-backup-dir fi + if [[ ! -e $password_file ]]; then + echo "kaya: error: the repo password file is missing:" >&2 + echo "${password_file}" >&2 + exit 1 + fi + update-htpasswd-file if [[ $action == backup ]]; then -- 2.25.1