diff --git a/build_declarations.sh b/build_declarations.sh index f9c67a2..6d06ac2 100755 --- a/build_declarations.sh +++ b/build_declarations.sh @@ -77,7 +77,7 @@ if [[ ${path_found} -eq 0 ]]; then for file in "${files[@]}" do - file_mapping=$(echo ${file_mapping} | tr ";" "\n") + file_mapping=($(echo ${file} | tr ";" "\n")) dst_file=${file_mapping[1]} if [[ -e "${path_target}/${dst_file}" ]] || [[ -L "${path_target}/${dst_file}" ]]; then