Skip to content

Commit

Permalink
fix bundle and bundler detection
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Oct 16, 2019
1 parent d76b9c0 commit 8466b32
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions aemdesign-testing/asciidoctor-convert-reports
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ EXTENSION_HTML=".html"
FRONT_COVER="src/asciidoc/aem.png"
DOCINFODIR="src/asciidoc"
LOCAL_GEM_USER_PATH=$(ruby -e 'puts Gem.user_dir')
LOCAL_BUNDLE="$(find $LOCAL_GEM_USER_PATH/gems/*/exe/* -name bundle)"
LOCAL_BUNDLE="$(which bundle)"
if [[ -z "$LOCAL_BUNDLE" ]]; then
LOCAL_BUNDLE="$(find $LOCAL_GEM_USER_PATH/gems/*/exe/* -name bundle)"
fi

function toUpperCase() {
local STRING=$@
Expand Down Expand Up @@ -124,7 +127,10 @@ function installDependencies() {
fi

LOCAL_GEM_USER_PATH=$(ruby -e 'puts Gem.user_dir')
LOCAL_BUNDLER="$(find $LOCAL_GEM_USER_PATH/gems/*/exe/* -name bundler)"
LOCAL_BUNDLER=$(which bundler)
if [[ -z "$LOCAL_BUNDLER" ]]; then
LOCAL_BUNDLER="$(find $LOCAL_GEM_USER_PATH/gems/*/exe/* -name bundler)"
fi

local STATUS_CHECK="$($LOCAL_BUNDLER check --path vendor/bundle)"
debug "CHECK RUBY: $STATUS_CHECK"
Expand Down

0 comments on commit 8466b32

Please sign in to comment.