From 36138f4901e201bfe5c7ac858bfcb3f0d3bf762a Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Wed, 3 Aug 2016 06:29:59 +0000 Subject: [PATCH] Rewrite with using here document syntax --- test/prefix.bats | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/prefix.bats b/test/prefix.bats index 47541e2a..bdee6f06 100644 --- a/test/prefix.bats +++ b/test/prefix.bats @@ -26,9 +26,10 @@ load test_helper @test "prefix for system in /" { mkdir -p "${BATS_TEST_DIRNAME}/libexec" - { echo "#!/bin/sh" - echo "echo /bin/ruby" - } >"${BATS_TEST_DIRNAME}/libexec/rbenv-which" + cat >"${BATS_TEST_DIRNAME}/libexec/rbenv-which" <