diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-07 21:25:17 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-07 22:35:35 +0000 |
commit | d2f75170a6c1548b85335c7e84a000ed67a0158b (patch) | |
tree | fb8fba7c6d1f15826ad5f3118367c3ec57241524 /lib/dtas/source | |
parent | 136f46adb568b964f61ecdafcd28936c44680b78 (diff) | |
download | dtas-d2f75170a6c1548b85335c7e84a000ed67a0158b.tar.gz |
This will allow users to more-easily edit configs and feel like a real shell. We no longer mistakenly expand nil env variables to "" anymore, either.
Diffstat (limited to 'lib/dtas/source')
-rw-r--r-- | lib/dtas/source/sox.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/source/sox.rb b/lib/dtas/source/sox.rb index e26f54b..484a0ec 100644 --- a/lib/dtas/source/sox.rb +++ b/lib/dtas/source/sox.rb @@ -41,7 +41,7 @@ class DTAS::Source::Sox # :nodoc: def try(infile, offset = nil) err = "" cmd = %W(soxi -s #{infile}) - s = qx(@env, cmd, err_str: err, no_raise: true) + s = qx(@env.dup, cmd, err_str: err, no_raise: true) return if err =~ /soxi FAIL formats:/ self.class.try_to_fail_harder(infile, s, cmd) or return source_file_dup(infile, offset) |