about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-09-09 07:22:04 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-09 07:22:04 +0000
commit39e037231c80032279d476922dcf3b4fa3d52baa (patch)
treee096a263fc73ebdff67c52a16faaa58f16c4a960
parent0b68738511236bf6b8b8eea63a8c9ab86b8ef284 (diff)
downloaddtas-39e037231c80032279d476922dcf3b4fa3d52baa.tar.gz
It's easier to handle the client and player to be in different
directories (and we also do this for dtas-enq(1))
-rwxr-xr-xbin/dtas-tl2
1 files changed, 2 insertions, 0 deletions
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)