diff --git a/test/prefix.bats b/test/prefix.bats index c0f73627..94f7739b 100644 --- a/test/prefix.bats +++ b/test/prefix.bats @@ -26,8 +26,9 @@ load test_helper @test "prefix for system in /" { mkdir -p "${BATS_TEST_DIRNAME}/libexec" - touch "${BATS_TEST_DIRNAME}/libexec/pyenv-which" - echo "echo /bin/python" >"${BATS_TEST_DIRNAME}/libexec/pyenv-which" + { echo "#!/bin/sh" + echo "echo /bin/python" + } >"${BATS_TEST_DIRNAME}/libexec/pyenv-which" chmod +x "${BATS_TEST_DIRNAME}/libexec/pyenv-which" PYENV_VERSION="system" run pyenv-prefix assert_success "/"