aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--installer/install-solargraph.cmd6
-rwxr-xr-xinstaller/install-solargraph.sh2
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 <<EOF >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