@cryptotaxi247 / kubo / commits / 4cab9fe37

ipfs-test-lib: fix shellquote() on Mac OS

License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>

Christian Couder committed Oct 3, 2015 at 16:06 UTC 4cab9fe37ee0e9d161f94c4817fbe0ada3406317
1 file changed +1 -1
test/ipfs-test-lib.sh
+1 -1
@@ -29,7 +29,7 @@ shellquote() {
29 for _arg
30 do
31 printf '%s' "$_space"
32 - printf '%s' "$_arg" | sed -e "s/'/'\\\\''/g; s/^/'/; s/\$/'/;"
32 + printf '%s' "$(printf '%s' "$_arg" | sed -e "s/'/'\\\\''/g; s/^/'/; s/\$/'/;")"
33 _space=' '
34 done
35 printf '\n'