Skip to content

Commit

Permalink
fix check for dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Nov 17, 2023
1 parent fd8bd76 commit b2d0bf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installation/includes/02_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down Expand Up @@ -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}")
Expand Down

0 comments on commit b2d0bf1

Please sign in to comment.