Skip to content

Commit

Permalink
Fix ruby version check in plugin test
Browse files Browse the repository at this point in the history
Before
$ if ["${ruby}" = '2.7']; then echo yay; fi
bash: [2.7: command not found

After
$ if [ "${ruby}" = '2.7' ]; then echo yay; fi
yay

Fixes: f164a3f
  • Loading branch information
adamruzicka authored and ekohl committed Jan 5, 2024
1 parent 206ee66 commit a68120f
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion theforeman.org/scripts/test/test_develop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rvm use ruby-${ruby}@${gemset} --create
rvm gemset empty --force
set -x

if ["${ruby}" = '2.7']
if [ "${ruby}" = '2.7' ]
then
gem install bundler -v 2.4.22 --no-document
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ gemset=$(echo ${JOB_NAME} | cut -d/ -f1)-${EXECUTOR_NUMBER}
rvm use ruby-${ruby}@${gemset} --create
rvm gemset empty --force

if ["${ruby}" = '2.7']
if [ "${ruby}" = '2.7' ]
then
gem install bundler -v 2.4.22 --no-document
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rvm use ruby-${ruby}@${gemset} --create
rvm gemset empty --force
set -x

if ["${ruby}" = '2.7']
if [ "${ruby}" = '2.7' ]
then
gem install bundler -v 2.4.22 --no-document
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rvm use ruby-${ruby}@${gemset} --create
rvm gemset empty --force
set -x

if ["${ruby}" = '2.7']
if [ "${ruby}" = '2.7' ]
then
gem install bundler -v 2.4.22 --no-document
else
Expand Down
2 changes: 1 addition & 1 deletion theforeman.org/scripts/test/test_katello.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ rvm use ruby-${ruby}@${gemset} --create
rvm gemset empty --force
set -x

if ["${ruby}" = '2.7']
if [ "${ruby}" = '2.7' ]
then
gem install bundler -v 2.4.22 --no-document
else
Expand Down
2 changes: 1 addition & 1 deletion theforeman.org/scripts/test/test_plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ rvm gemset empty --force

set -x

if ["${ruby}" = '2.7']
if [ "${ruby}" = '2.7' ]
then
gem install bundler -v 2.4.22 --no-document
else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
rvm use ruby-${{ruby}}@${{gemset}} --create
rvm gemset empty --force
if ["${{ruby}}" = '2.7']
if [ "${{ruby}}" = '2.7' ]
then
gem install bundler -v 2.4.22 --no-document
else
Expand Down
2 changes: 1 addition & 1 deletion theforeman.org/yaml/builders/smart-proxy-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
rvm gemset empty --force
set -x
if ["${{ruby}}" = '2.7']
if [ "${{ruby}}" = '2.7' ]
then
gem install bundler -v 2.4.22 --no-document
else
Expand Down

0 comments on commit a68120f

Please sign in to comment.