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 committed Jan 5, 2024
1 parent 206ee66 commit 924dbd5
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 924dbd5

Please sign in to comment.