From c062e33e48161468d4df60696fa43dae0dfabce7 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sat, 22 Feb 2020 02:29:25 +0900 Subject: Fix installer of solargraph --- installer/install-solargraph.cmd | 6 +++++- installer/install-solargraph.sh | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/installer/install-solargraph.cmd b/installer/install-solargraph.cmd index 5029d99..fd00e74 100644 --- a/installer/install-solargraph.cmd +++ b/installer/install-solargraph.cmd @@ -6,7 +6,11 @@ call bundle install --path vendor/bundle echo @echo off ^ -bundle exec ruby %%~dp0\bin/solargraph stdio ^ +setlocal ^ + +set BUNDLE_GEMFILE=%%~dp0Gemfile ^ + +bundle exec ruby %%~dp0\bin\solargraph %%* ^ > solargraph.cmd diff --git a/installer/install-solargraph.sh b/installer/install-solargraph.sh index df8cd7d..92377f3 100755 --- a/installer/install-solargraph.sh +++ b/installer/install-solargraph.sh @@ -9,7 +9,7 @@ cat <solargraph #!/usr/bin/env bash DIR=\$(cd \$(dirname \$0); pwd) -cd \$DIR && bundle exec ruby \$DIR/bin/solargraph stdio +BUNDLE_GEMFILE=\$DIR/Gemfile bundle exec ruby \$DIR/bin/solargraph \$* EOF chmod +x solargraph -- cgit v1.2.3-54-g00ecf