diff --git a/libraries/util.bash b/libraries/util.bash index c142f45e..39446647 100755 --- a/libraries/util.bash +++ b/libraries/util.bash @@ -8,7 +8,9 @@ function arrayToParameters() { local -r array=("${@}") - printf "'%s' " "${array[@]}" + local -r string="$(printf "'%s '" "${array[@]}")" + + echo "${string:0:${#string} - 1}" } function arrayToString()