Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gdbtek committed Dec 1, 2019
1 parent 6c83e32 commit 4dbba88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/util.bash
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4dbba88

Please sign in to comment.