diff options
author | Nat Lasseter <Nat Lasseter nathan@bytemark.co.uk> | 2018-11-08 09:32:27 +0000 |
---|---|---|
committer | Nat Lasseter <Nat Lasseter nathan@bytemark.co.uk> | 2018-11-08 09:32:27 +0000 |
commit | 509096c4cee49710c9910668ac45d23e2ec825aa (patch) | |
tree | 1fea03d51a908d478f099f2dbf4168710c5b2a03 | |
parent | 3633071bbe2b6d86dd0f6ae1180663d1da843ada (diff) |
[equote] handle nils nicely
-rwxr-xr-x | equote | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ #!/usr/bin/env ruby -LINELENGTH = (ARGV.shift.chomp || 72).to_i -CHAR = ARGV.shift.chomp || ">" +LINELENGTH = (ARGV.shift&.chomp || 72).to_i +CHAR = ARGV.shift&.chomp || ">" lines = $stdin.readlines |