Skip to content

Commit 1500106

Browse files
authored
Merge pull request #105 from Earlopain/ragel-rake-buildin-command
Fix `bundle exec rake install` when `command` is a shell buildin
2 parents bd82326 + fe4c477 commit 1500106

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/ragel.rake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ namespace :ragel do
4343
task :install do
4444
next if ENV['CI']
4545

46-
if system('command -v ragel')
46+
if system('sh -c "command -v ragel"')
4747
# already installed
48-
elsif system('command -v brew')
48+
elsif system('sh -c "command -v brew"')
4949
puts 'ragel not found, installing with homebrew ...'
5050
`brew install ragel`
51-
elsif system('command -v apt-get')
51+
elsif system('sh -c "command -v apt-get"')
5252
puts 'ragel not found, installing with apt-get ...'
5353
`sudo apt-get install -y ragel`
5454
else

0 commit comments

Comments
 (0)