From fe742050acf7059ca91cf76661a80ea429aa56e3 Mon Sep 17 00:00:00 2001 From: Christian Couder Date: Sat, 29 Aug 2015 22:23:43 +0200 Subject: [PATCH] t0062: use "$@" directly This avoids potential quoting problems. License: MIT Signed-off-by: Christian Couder --- test/sharness/t0062-daemon-api.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/sharness/t0062-daemon-api.sh b/test/sharness/t0062-daemon-api.sh index a289ed3b1..d62869e87 100755 --- a/test/sharness/t0062-daemon-api.sh +++ b/test/sharness/t0062-daemon-api.sh @@ -16,16 +16,14 @@ api_fromcfg=$(ipfs config Addresses.API) peerid=$(ipfs config Identity.PeerID) test_client() { - args="$@" printf $peerid >expected - ipfs $args id -f="" >actual + ipfs "$@" id -f="" >actual test_cmp expected actual } test_client_must_fail() { - args="$@" echo "Error: api not running" >expected_err - test_must_fail ipfs $args id -f="" >actual 2>actual_err + test_must_fail ipfs "$@" id -f="" >actual 2>actual_err test_cmp expected_err actual_err }