From 39e037231c80032279d476922dcf3b4fa3d52baa Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Sep 2013 07:22:04 +0000 Subject: dtas-tl: expand paths before using them 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(+) (limited to 'bin/dtas-tl') 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) -- cgit v1.2.3-24-ge0c7