Skip to content

Commit 54a57f3

Browse files
committed
Use /usr/bin/env sh instead of bash in ext Rakefile for portability.
1 parent 097786e commit 54a57f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/rabbitmq/Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ file_task 'rabbitmq-c', :download => :download_tarball do
3737
end
3838

3939
file_task 'config.status', :configure => :download do
40-
cmd "bash -c 'cd #{FILES[:download]} && ./configure'"
40+
cmd "/usr/bin/env sh -c 'cd #{FILES[:download]} && ./configure'"
4141
cmd "cp #{FILES[:download]}/#{FILES[:configure]} ./"
4242
end
4343

4444
file_task "librabbitmq.#{::FFI::Platform::LIBSUFFIX}", :build => :configure do
45-
cmd "bash -c 'cd #{FILES[:download]} && make'"
45+
cmd "/usr/bin/env sh -c 'cd #{FILES[:download]} && make'"
4646
cmd "cp #{FILES[:download]}/librabbitmq/.libs/#{FILES[:build]} ."
4747
end

0 commit comments

Comments
 (0)