Skip to content

Commit

Permalink
puppetlabsGH-318 Fixed variable scope.
Browse files Browse the repository at this point in the history
  • Loading branch information
bit0rez committed Jan 19, 2023
1 parent 363915d commit ac0adc9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions puppet-languageserver
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

$realpath = File.dirname(File.realpath(__FILE__))
realpath = File.dirname(File.realpath(__FILE__))

# Add the language server into the load path
$LOAD_PATH.unshift(File.join($realpath, 'lib'))
$LOAD_PATH.unshift(File.join(realpath, 'lib'))

# Add the vendored gems into the load path
$LOAD_PATH.unshift(File.join($realpath, 'vendor', 'puppet-lint', 'lib'))
$LOAD_PATH.unshift(File.join($realpath, 'vendor', 'molinillo', 'lib'))
$LOAD_PATH.unshift(File.join($realpath, 'vendor', 'puppetfile-resolver', 'lib'))
$LOAD_PATH.unshift(File.join(realpath, 'vendor', 'puppet-lint', 'lib'))
$LOAD_PATH.unshift(File.join(realpath, 'vendor', 'molinillo', 'lib'))
$LOAD_PATH.unshift(File.join(realpath, 'vendor', 'puppetfile-resolver', 'lib'))

require 'puppet_languageserver'

Expand Down

0 comments on commit ac0adc9

Please sign in to comment.