summaryrefslogtreecommitdiff
path: root/chef/bin/shef
diff options
context:
space:
mode:
Diffstat (limited to 'chef/bin/shef')
-rwxr-xr-xchef/bin/shef7
1 files changed, 2 insertions, 5 deletions
diff --git a/chef/bin/shef b/chef/bin/shef
index 3d215488d6..2240e49067 100755
--- a/chef/bin/shef
+++ b/chef/bin/shef
@@ -26,11 +26,8 @@ require "irb"
require "irb/completion"
# TODO::EVIL
-begin
- require "#{File.dirname(__FILE__)}/../lib/chef"
-rescue LoadError
- # the bin got moved, e.g., by rubygems
-end
+$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")))
+
require "chef/shef"
# dirty hack to make IRB initialize shef