diff options
author | Eric Wong <e@80x24.org> | 2015-12-27 06:08:31 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-12-27 06:35:02 +0000 |
commit | 7e163620fc36ac5067d96a714444f75f53a3b115 (patch) | |
tree | ffe73f2eb08175910d3190dc67cbcbac214bd160 | |
parent | 1306cf481cfa3e2452d33d848a363afa8f20c012 (diff) | |
download | dtas-7e163620fc36ac5067d96a714444f75f53a3b115.tar.gz |
This only affected splitfx when it used the command option, and only when calling dtas-splitfx (not when playing splitfx files through the player).
-rw-r--r-- | lib/dtas/splitfx.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/splitfx.rb b/lib/dtas/splitfx.rb index 4084393..9a1f729 100644 --- a/lib/dtas/splitfx.rb +++ b/lib/dtas/splitfx.rb @@ -231,7 +231,7 @@ class DTAS::SplitFX # :nodoc: } env['SOXFMT'] = '-tsox' sub_env['OUTFMT'] = env.delete('OUTFMT') - sub_env_s = sub_env.inject("") { |s,(k,v)| s << "#{k}=\"#{v}\" " } + sub_env_s = sub_env.map { |k,v| "#{k}=\"#{v}\"" }.join(' ') show_cmd = [ expand_cmd(env, player_cmd), '|', '(', "#{sub_env_s};", expand_cmd(env.merge(sub_env), command), ')' ].flatten command = "#{player_cmd} | (#{sub_env_s}; #{command})" |