Skip to content

Commit

Permalink
ipfs-test-lib: fix shellquote()
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
  • Loading branch information
chriscool committed Oct 3, 2015
1 parent d352b04 commit 238bceb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/ipfs-test-lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ shellquote() {
_space=''
for _arg
do
printf '%s' "$_space"
printf '%s' "$_arg" | sed -e "s/'/'\\\\''/g; s/^/'/; s/\$/'/;"
printf '%s'\' "$_space"
printf '%s' "$_arg" | sed -e "s/'/'\\\\''/g"
printf \'
_space=' '
done
printf '\n'
Expand Down

0 comments on commit 238bceb

Please sign in to comment.