From 417d7880702a645a5efd272a42dd03a8e7419035 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 15 May 2012 13:31:21 -0500 Subject: Shore up a number of shell quoting issues When interpolating in strings passed to Formula#system, it should be done in such a way that if any interpolated variables contain spaces, they are either (a) passed as part of a list or (b) protected by quotes if they are part of a long string (which is subject to shell expansion). Otherwise, they will be split on the space when expanded by the shell and passed as multiple arguments to whatever process is being executed. Signed-off-by: Jack Nagel --- Library/Formula/git-url-sub.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Formula/git-url-sub.rb') diff --git a/Library/Formula/git-url-sub.rb b/Library/Formula/git-url-sub.rb index d157b81a2..df4e79536 100644 --- a/Library/Formula/git-url-sub.rb +++ b/Library/Formula/git-url-sub.rb @@ -6,6 +6,6 @@ class GitUrlSub < Formula md5 '5d2dad29dcd53eedc0730f42014bec51' def install - system "make install PREFIX=#{prefix}" + system "make", "install", "PREFIX=#{prefix}" end end -- cgit v1.2.3