17 lines
342 B
Bash
17 lines
342 B
Bash
#!/bin/sh
|
|
set -o errexit
|
|
|
|
git clone --depth=1 https://github.com/puppetlabs/puppet-editor-services.git .
|
|
bundle config set --local path 'vendor/bundle'
|
|
bundle install
|
|
bundle exec rake gem_revendor
|
|
|
|
cat <<'EOF' >puppet-ls
|
|
#!/bin/sh
|
|
set -o errexit
|
|
cd "$(dirname "$0")"
|
|
exec bundle exec ruby ./puppet-languageserver "$@"
|
|
EOF
|
|
|
|
chmod +x puppet-ls
|