From f00ec57e1daa3170dba937324b9cac7a642c4d22 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 19 Sep 2015 13:00:38 -0700 Subject: [PATCH] use rbenv shims in scripts --- bin/bootstrap.sh | 2 ++ bin/compile.sh | 2 ++ bin/create-test-blog.sh | 2 ++ 3 files changed, 6 insertions(+) diff --git a/bin/bootstrap.sh b/bin/bootstrap.sh index 53e76cd..9548956 100755 --- a/bin/bootstrap.sh +++ b/bin/bootstrap.sh @@ -3,6 +3,8 @@ # bail on errors set -e +export PATH="$HOME/.rbenv/shims:$PATH" + echo "*** bootstrap samhuri.net" echo "* bundle install" diff --git a/bin/compile.sh b/bin/compile.sh index 91f3156..c38cf84 100755 --- a/bin/compile.sh +++ b/bin/compile.sh @@ -3,6 +3,8 @@ # bail on errors set -e +export PATH="$HOME/.rbenv/shims:$PATH" + DIR=$(dirname "$0") HARP="node_modules/harp/bin/harp" BLOG_DIR="${1:-${DIR}/..}" diff --git a/bin/create-test-blog.sh b/bin/create-test-blog.sh index d36f529..16c6088 100755 --- a/bin/create-test-blog.sh +++ b/bin/create-test-blog.sh @@ -2,6 +2,8 @@ set -e # bail on errors +export PATH="$HOME/.rbenv/shims:$PATH" + BLOG_PATH="$1" ORIGIN_BLOG_PATH="${BLOG_PATH}-origin.git" if [[ -e "$BLOG_PATH" ]]; then