From 0a649346fb529860993cd5b8864924f76e02f981 Mon Sep 17 00:00:00 2001 From: Marco Kellershoff Date: Fri, 6 Sep 2024 13:35:30 +0200 Subject: [PATCH] fix(tests): prepare download script --- .gitignore | 1 + scripts/tests.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9a3e221..4b465d2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ http-client.env.json *.http *graphql-schema.json /http-examples +/_neovim diff --git a/scripts/tests.sh b/scripts/tests.sh index 1e989c7..3a799fa 100755 --- a/scripts/tests.sh +++ b/scripts/tests.sh @@ -8,8 +8,7 @@ prepare() { local download_url=$1 if [[ -n $download_url ]]; then - mkdir -p _neovim - curl -sL "$download_url" _neovim/nvim && chmod +x _neovim/nvim + curl -sL "$download_url" -o _neovim/nvim && chmod +x _neovim/nvim mkdir -p ~/.local/share/nvim/site/pack/vendor/start @@ -26,6 +25,8 @@ prepare() { } run() { + export PATH="${PWD}/_neovim:${PATH}" + local tempfile tempfile=$(mktemp)