[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/3] dtas-tl: expand paths before using them
From: |
Eric Wong |
Subject: |
[PATCH 2/3] dtas-tl: expand paths before using them |
Date: |
Mon, 9 Sep 2013 07:25:24 +0000 |
It's easier to handle the client and player to be in different
directories (and we also do this for dtas-enq(1))
---
bin/dtas-tl | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bin/dtas-tl b/bin/dtas-tl
index 31a6825..1cd2acc 100755
--- a/bin/dtas-tl
+++ b/bin/dtas-tl
@@ -16,6 +16,7 @@ when "cat"
when "add-all"
ARGV.shift
ARGV.reverse.each do |path|
+ path = File.expand_path(path.b)
res = c.req(%W(tl add #{path}))
puts "#{path} #{res}"
end
@@ -25,6 +26,7 @@ when "add-tail"
track_ids = track_ids.split(/ /)
last_id = track_ids.pop
ARGV.each do |path|
+ path = File.expand_path(path.b)
req = %W(tl add #{path})
req << last_id.to_s if last_id
res = c.req(req)
--
1.8.4
- [PATCH 2/3] dtas-tl: expand paths before using them,
Eric Wong <=