From 0264fa15698a9018bb4efcd58416f4ca9b0ec563 Mon Sep 17 00:00:00 2001 From: ydah <13041216+ydah@users.noreply.github.com> Date: Sat, 7 Jan 2023 21:17:11 +0900 Subject: [PATCH] Fix an indentation for script.sh This PR is fx an indentation for script.sh --- script.sh | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/script.sh b/script.sh index 6d9e36b..0aa6fbf 100755 --- a/script.sh +++ b/script.sh @@ -28,15 +28,15 @@ if [ "${INPUT_SKIP_INSTALL}" = "false" ]; then # left it empty otherwise, so no version will be passed if [ -n "$RUBOCOP_GEMFILE_VERSION" ]; then RUBOCOP_VERSION=$RUBOCOP_GEMFILE_VERSION - else - printf "Cannot get the rubocop's version from Gemfile.lock. The latest version will be installed." - fi else - printf 'Gemfile.lock not found. The latest version will be installed.' - fi + printf "Cannot get the rubocop's version from Gemfile.lock. The latest version will be installed." + fi else - # set desired rubocop version - RUBOCOP_VERSION=$INPUT_RUBOCOP_VERSION + printf 'Gemfile.lock not found. The latest version will be installed.' + fi + else + # set desired rubocop version + RUBOCOP_VERSION=$INPUT_RUBOCOP_VERSION fi gem install -N rubocop --version "${RUBOCOP_VERSION}" @@ -58,11 +58,11 @@ if [ "${INPUT_SKIP_INSTALL}" = "false" ]; then # left it empty otherwise, so no version will be passed if [ -n "$RUBOCOP_EXTENSION_GEMFILE_VERSION" ]; then RUBOCOP_EXTENSION_VERSION=$RUBOCOP_EXTENSION_GEMFILE_VERSION - else - printf "Cannot get the rubocop extension version from Gemfile.lock. The latest version will be installed." - fi else - printf 'Gemfile.lock not found. The latest version will be installed.' + printf "Cannot get the rubocop extension version from Gemfile.lock. The latest version will be installed." + fi + else + printf 'Gemfile.lock not found. The latest version will be installed.' fi else # set desired rubocop extension version