Skip to content

Commit

Permalink
fix parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Nov 15, 2023
1 parent b517ec2 commit 2e3ce0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions installation/includes/02_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ verify_file_chmod_chown() {
local mod_expected=$1
local user_expected=$2
local group_expected=$3
local files="${@:4}"

for file in "$@"
for file in $files
do
test ! -f ${file} && exit_on_error "ERROR: ${file} does not exists or is not a file!"

Expand All @@ -85,8 +86,9 @@ verify_dir_chmod_chown() {
local mod_expected=$1
local user_expected=$2
local group_expected=$3
local dirs="${@:4}"

for dir in "$@"
for dir in $dirs
do
test ! -f ${dir} && exit_on_error "ERROR: ${dir} does not exists or is not a dir!"

Expand Down

0 comments on commit 2e3ce0e

Please sign in to comment.