From 0d533db81cd935d50470ee0204ef674cb2d47da8 Mon Sep 17 00:00:00 2001 From: mhidaka Date: Sun, 10 May 2020 15:00:21 +0900 Subject: [PATCH] - Fixed missing npm install commands. - If an error occurs, make it fault and exit console. --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index b80316c..c19cc5e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/sh -l +#!/bin/sh -el [ -z "${INPUT_TARGET_DIR}" ] && { echo "Need to set TARGET_DIR. Default is './'"; exit 1; } [ -z "${INPUT_CONFIG_FILE}" ] && { echo "Need to set CONFIG_FILE. Default is 'config.yml'"; exit 1; } @@ -7,5 +7,5 @@ # TODO Enable env paramaters that only INPUT_TARGET_DIR works well. echo "Run Initialization and build step" -cd $INPUT_TARGET_DIR && bundle install && npm run pdf +cd $INPUT_TARGET_DIR && bundle install && npm install && npm run pdf echo "Finish build step"