From 0ba5bcfc188499575138c26d657fd0763210e19c Mon Sep 17 00:00:00 2001 From: Conrad Date: Mon, 4 May 2020 11:52:58 +0200 Subject: [PATCH] Fix for the PRETTIER_VERSION problems --- entrypoint.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index a9bc014..91abb9c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -27,11 +27,14 @@ _git_changed() { # PROGRAM echo "Installing prettier..." -if "$INPUT_PRETTIER_VERSION"; then - npm install --silent --global prettier@$INPUT_PRETTIER_VERSION -else - npm install --silent --global prettier -fi +case $INPUT_PRETTIER_VERSION in + false) + npm install --silent --global prettier + ;; + *) + npm install --silent --global prettier@$INPUT_PRETTIER_VERSION + ;; +esac echo "Prettifing files..." echo "Files:"