about summary refs log tree commit homepage
path: root/lib/dtas/source
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-08-26 00:09:32 +0000
committerEric Wong <normalperson@yhbt.net>2013-08-26 00:09:32 +0000
commita1198562c51c5374a85d74e1cfe9e6a695384a3d (patch)
tree0a7cb6480c144da6363a74e8adf75a73b2ba204d /lib/dtas/source
parent5a966a1ec8662d2e0b9035675a770c6f2c739b7d (diff)
downloaddtas-a1198562c51c5374a85d74e1cfe9e6a695384a3d.tar.gz
Shellwords.join is an identical method and there's no reason not to
use it.
Diffstat (limited to 'lib/dtas/source')
-rw-r--r--lib/dtas/source/sox.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/source/sox.rb b/lib/dtas/source/sox.rb
index 235cbbc..086b923 100644
--- a/lib/dtas/source/sox.rb
+++ b/lib/dtas/source/sox.rb
@@ -77,7 +77,7 @@ class DTAS::Source::Sox # :nodoc:
         end
       rescue => e
         if /FAIL formats: no handler for file extension/ =~ err
-          warn("#{xs(cmd)}: #{err}")
+          warn("#{Shellwords.escape(cmd)}: #{err}")
         else
           warn("#{e.message} (#{e.class})")
         end