From a0bde568584cc9a2640863a89910cea47d8ed269 Mon Sep 17 00:00:00 2001 From: Edric Chan Date: Sat, 15 Feb 2020 16:01:34 +0800 Subject: [PATCH] Cherrypick changes from #8 CC @jhoward321 --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index dcf3bba..7cbe25d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -62,7 +62,10 @@ if [[ "$SHOW_BUNDLE_LOG" = true || ($SHOW_BUNDLE_LOG == 1) ]]; then bundle install else # Prevent installed dependencies messages from clogging the log - bundle install > /dev/null 2>&1 + if [[ 0 -ne $(bundle install > /tmp/bundle-install.log 2>&1; echo $?) ]]; then + echo "Failed to install gem bundles:" + cat /tmp/bundle-install.log + fi fi # Check if jekyll is installed