Skip to content

Commit

Permalink
Merge pull request #79 from ydah/fix-indent
Browse files Browse the repository at this point in the history
Fix an indentation for script.sh
  • Loading branch information
mgrachev authored Jan 11, 2023
2 parents f5cd066 + 0264fa1 commit 3467a2f
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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
Expand Down

0 comments on commit 3467a2f

Please sign in to comment.