Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Use /usr/bin/env which #368

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/vagrant-lxc/provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def sudo_wrapper

def ensure_lxc_installed!
begin
sudo_wrapper.run("/usr/bin/which", "lxc-create")
sudo_wrapper.run("/usr/bin/env", "which", "lxc-create")
rescue Vagrant::LXC::Errors::ExecuteError
raise Errors::LxcNotInstalled
end
Expand Down