From 7572ba2fe13ad9fa7197c727b3fe05bb0310ced0 Mon Sep 17 00:00:00 2001 From: Robb Kidd Date: Tue, 17 Jan 2017 20:01:39 -0500 Subject: use pkg.path variable to reference path to self This will resolve an error that appears if this package is built and run for development or personal use under a different origin. Signed-off-by: Robb Kidd --- habitat/hooks/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'habitat/hooks') diff --git a/habitat/hooks/run b/habitat/hooks/run index cbfa24ab62..0f3844dd5f 100644 --- a/habitat/hooks/run +++ b/habitat/hooks/run @@ -1,5 +1,5 @@ #!/bin/sh -export GEM_HOME="$(hab pkg path chef/chef-client)/ruby/2.3.0" +export GEM_HOME="{{pkg.path}}/ruby/2.3.0" export GEM_PATH="$(hab pkg path core/ruby)/lib/ruby/gems/2.3.0:$(hab pkg path core/bundler):$GEM_HOME" export APPBUNDLER_ALLOW_RVM=true -- cgit v1.2.1