From b2d0bf1932eb02f17fb5a4788a1cba63ee04890f Mon Sep 17 00:00:00 2001 From: Alvin Schiller <103769832+AlvinSchiller@users.noreply.github.com> Date: Fri, 17 Nov 2023 21:32:43 +0100 Subject: [PATCH] fix check for dirs --- installation/includes/02_helpers.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installation/includes/02_helpers.sh b/installation/includes/02_helpers.sh index 03406ec60..003f58993 100644 --- a/installation/includes/02_helpers.sh +++ b/installation/includes/02_helpers.sh @@ -94,7 +94,7 @@ verify_dirs_exist() { for dir in $dirs do - test ! -f ${dir} && exit_on_error "ERROR: ${dir} does not exists or is not a dir!" + test ! -d ${dir} && exit_on_error "ERROR: ${dir} does not exists or is not a dir!" done echo "CHECK" } @@ -132,7 +132,7 @@ verify_dirs_chmod_chown() { for dir in $dirs do - test ! -f ${dir} && exit_on_error "ERROR: ${dir} does not exists or is not a dir!" + test ! -d ${dir} && exit_on_error "ERROR: ${dir} does not exists or is not a dir!" mod_actual=$(stat --format '%a' "${dir}") user_actual=$(stat -c '%U' "${dir}")