From 897359d7a2b0086d6b39228eff677370bd664bea Mon Sep 17 00:00:00 2001 From: Conrad Date: Tue, 24 Mar 2020 10:00:40 +0100 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 500329d..b39676d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -37,10 +37,10 @@ _git_push() { # PROGRAM echo "Installing prettier..." -if -z "$INPUT_PRETTIER_VERSION"; then - npm install --silent --global prettier -else +if "$INPUT_PRETTIER_VERSION"; then npm install --silent --global prettier@$INPUT_PRETTIER_VERSION +else + npm install --silent --global prettier fi echo "Prettifing files..."