diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/dtas-tl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/dtas-tl b/bin/dtas-tl index 34fba81..30821a1 100755 --- a/bin/dtas-tl +++ b/bin/dtas-tl @@ -114,11 +114,13 @@ when "addtail" ARGV.shift track_ids = get_track_ids(c) last_id = track_ids.pop - ARGV.reverse_each do |path| + ARGV.each do |path| path = File.expand_path(path) - req = %W(tl add #{path} #{last_id}) + req = %W(tl add #{path}) + req << last_id.to_s if last_id res = c.req(req) print "#{path} #{res}\n" + last_id = res if res =~ /\A\d+\z/ end when "reto" fixed = ARGV.delete("-F") |