aboutsummaryrefslogtreecommitdiff
path: root/installer/install-solargraph.sh
blob: 92377f301e3ca4a848a4e2b621155191c8d8776a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

set -e

git clone "https://github.com/castwide/solargraph" .
bundle install --path vendor/bundle

cat <<EOF >solargraph
#!/usr/bin/env bash

DIR=\$(cd \$(dirname \$0); pwd)
BUNDLE_GEMFILE=\$DIR/Gemfile bundle exec ruby \$DIR/bin/solargraph \$*
EOF

chmod +x solargraph