Skip to content

Commit

Permalink
Actually use the fully resolved powershell executable.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcooper committed Feb 2, 2013
1 parent 4cb4da0 commit 9c95b11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/puppet/provider/exec/powershell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
EOT

def run(command, check = false)
super(['powershell.exe', command], check)
super("\"#{POWERSHELL}\" #{command}", check)
end

def checkexe(command)
Expand All @@ -38,4 +38,3 @@ def validatecmd(command)
true
end
end

0 comments on commit 9c95b11

Please sign in to comment.