diff options
| author | Markus Reiter | 2017-12-03 08:15:22 +0100 |
|---|---|---|
| committer | GitHub | 2017-12-03 08:15:22 +0100 |
| commit | c1b85a6f9d9fd8d46afdcc9488c320d39fcb275d (patch) | |
| tree | a336ad3debe04507906d0d400641f70afbc5f0d4 /Library/Homebrew/compat | |
| parent | 780e86904beff771e9f7e90fa9e53dd9dc4aeeaf (diff) | |
| parent | 36c0dbfe13d6185d34a35a1a386d95a3a4046a30 (diff) | |
| download | brew-c1b85a6f9d9fd8d46afdcc9488c320d39fcb275d.tar.bz2 | |
Merge pull request #3514 from reitermarkus/system_command
Fix SystemCommand escaping … again.
Diffstat (limited to 'Library/Homebrew/compat')
| -rw-r--r-- | Library/Homebrew/compat/hbc.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/compat/hbc/system_command.rb | 18 |
2 files changed, 0 insertions, 19 deletions
diff --git a/Library/Homebrew/compat/hbc.rb b/Library/Homebrew/compat/hbc.rb index ebf8a9874..608d46e37 100644 --- a/Library/Homebrew/compat/hbc.rb +++ b/Library/Homebrew/compat/hbc.rb @@ -4,7 +4,6 @@ require "compat/hbc/cache" require "compat/hbc/caskroom" require "compat/hbc/cli" require "compat/hbc/dsl" -require "compat/hbc/system_command" module Hbc class << self diff --git a/Library/Homebrew/compat/hbc/system_command.rb b/Library/Homebrew/compat/hbc/system_command.rb deleted file mode 100644 index bb9187db3..000000000 --- a/Library/Homebrew/compat/hbc/system_command.rb +++ /dev/null @@ -1,18 +0,0 @@ -require "shellwords" - -module SystemCommandCompatibilityLayer - def initialize(executable, args: [], **options) - if args.empty? && !File.exist?(executable) - odeprecated "`system_command` with a shell string", "`system_command` with the `args` parameter" - executable, *args = Shellwords.shellsplit(executable) - end - - super(executable, args: args, **options) - end -end - -module Hbc - class SystemCommand - prepend SystemCommandCompatibilityLayer - end -end |
