mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 00:31:07 -05:00
fix rubocop logic
This commit is contained in:
parent
081e267c15
commit
22b7a7f073
1 changed files with 4 additions and 1 deletions
|
@ -82,7 +82,10 @@ RUN gem install rubocop:0.74.0 rubocop-rails rubocop-github:0.13.0
|
||||||
|
|
||||||
# Need to fix the version as it installs 'rubocop:0.85.1' as a dep, and forces the default
|
# Need to fix the version as it installs 'rubocop:0.85.1' as a dep, and forces the default
|
||||||
# We then need to promot the correct verion, uninstall, and fix deps
|
# We then need to promot the correct verion, uninstall, and fix deps
|
||||||
RUN sh -c 'gem install --default rubocop:0.74.0; yes | gem uninstall rubocop:0.85.1 -a -x -I; gem install rubocop:0.74.0'
|
RUN sh -c 'INCORRECT_VERSION=$(gem list rhc -e rubocop | grep rubocop | awk "{print $2}" | cut -d"(" -f2 | cut -d"," -f1); \
|
||||||
|
gem install --default rubocop:0.74.0; \
|
||||||
|
yes | gem uninstall rubocop:$INCORRECT_VERSION -a -x -I; \
|
||||||
|
gem install rubocop:0.74.0'
|
||||||
|
|
||||||
######################
|
######################
|
||||||
# Install shellcheck #
|
# Install shellcheck #
|
||||||
|
|
Loading…
Reference in a new issue