summaryrefslogtreecommitdiff
path: root/merge-fuse-batch
diff options
context:
space:
mode:
Diffstat (limited to 'merge-fuse-batch')
-rwxr-xr-xmerge-fuse-batch3
1 files changed, 2 insertions, 1 deletions
diff --git a/merge-fuse-batch b/merge-fuse-batch
index 1f21c55..fa29893 100755
--- a/merge-fuse-batch
+++ b/merge-fuse-batch
@@ -5,7 +5,8 @@ DIR=ARGV[0]
i = 0
while line = STDIN.gets
args = line.strip.split.join (" -f #{DIR}")
- cmd = "#{BILDROEHRE}/merge -F -o mertens-fused-#{i}.jpg #{args}"
+ is = i.to_s.rjust(3, "0")
+ cmd = "#{BILDROEHRE}/merge -F -o mertens-fused-#{is}.jpg #{args}"
STDERR.write "#{cmd}\n"
`#{cmd}`
i += 1