From 6645fb6d8701873cb3c95d0b8166afedca9fdfc2 Mon Sep 17 00:00:00 2001 From: Nam Nguyen Date: Wed, 26 Jun 2019 22:41:27 -0700 Subject: [PATCH] bug fixes --- cookbooks/foodcritic/recipes/install.bash | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cookbooks/foodcritic/recipes/install.bash b/cookbooks/foodcritic/recipes/install.bash index 8c9d30e7..7dba66e7 100755 --- a/cookbooks/foodcritic/recipes/install.bash +++ b/cookbooks/foodcritic/recipes/install.bash @@ -14,9 +14,9 @@ function install() gem install foodcritic - if [[ -f "${FOODCRITIC_RUBY_INSTALL_FOLDER_PATH}/bin/foodcritic" ]] + if [[ -f "${RUBY_INSTALL_FOLDER_PATH}/bin/foodcritic" ]] then - symlinkListUsrBin "${FOODCRITIC_RUBY_INSTALL_FOLDER_PATH}/bin/foodcritic" + symlinkListUsrBin "${RUBY_INSTALL_FOLDER_PATH}/bin/foodcritic" fi displayVersion "$(foodcritic --version)" @@ -27,6 +27,7 @@ function install() function main() { source "$(dirname "${BASH_SOURCE[0]}")/../../../libraries/util.bash" + source "$(dirname "${BASH_SOURCE[0]}")/../../ruby/attributes/default.bash" header 'INSTALLING FOODCRITIC'