From 66441c9ff3f3eb71846a8bff00c1f045a20a6609 Mon Sep 17 00:00:00 2001 From: Conrad Date: Tue, 24 Mar 2020 09:46:35 +0100 Subject: [PATCH] Fixed bug with new version parameter --- entrypoint.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 150a669..4c4efcd 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -37,10 +37,11 @@ _git_push() { # PROGRAM echo "Installing prettier..." -if $INPUT_PRETTIER_VERSION; then - npm install --silent --global prettier@$INPUT_PRETTIER_VERSION -else +if ! $INPUT_PRETTIER_VERSION; then npm install --silent --global prettier + +else + npm install --silent --global prettier@$INPUT_PRETTIER_VERSION fi echo "Prettifing files..."