mirror of
https://github.com/ipfs/kubo.git
synced 2025-10-25 10:27:01 +08:00
ipfs-test-lib: fix shellquote() on Mac OS
License: MIT Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
This commit is contained in:
@ -29,7 +29,7 @@ shellquote() {
|
||||
for _arg
|
||||
do
|
||||
printf '%s' "$_space"
|
||||
printf '%s' "$_arg" | sed -e "s/'/'\\\\''/g; s/^/'/; s/\$/'/;"
|
||||
printf '%s' "$(printf '%s' "$_arg" | sed -e "s/'/'\\\\''/g; s/^/'/; s/\$/'/;")"
|
||||
_space=' '
|
||||
done
|
||||
printf '\n'
|
||||
|
||||
Reference in New Issue
Block a user