dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: 8bcd30240e136d156264fee4e171aae4c7a310d2
Parent: 4bd127be9858214089a05e52c67b6276da3e571a
Author: Randy Palamar
Date:   Mon,  6 Sep 2021 16:45:22 -0600

allow srt-adjust to be used in pipes and on multiple files

Diffstat:
Mbin/srt-adjust | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/srt-adjust b/bin/srt-adjust @@ -3,7 +3,7 @@ # adjusts a provided srt file by the given time in milliseconds function usage() { - printf "usage: %s [-]time(ms) srt\n", ARGV[0] + printf "usage: %s [-]time(ms) [srt ...]\n", ARGV[0] exit(1) } @@ -29,7 +29,7 @@ function bump(a, time) { } BEGIN { - if (ARGC != 3) { + if (ARGC < 2) { usage() }