diff options
Diffstat (limited to 'dot/local/bin/lptext')
-rwxr-xr-x | dot/local/bin/lptext | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/dot/local/bin/lptext b/dot/local/bin/lptext index 064e98e..645e4a4 100755 --- a/dot/local/bin/lptext +++ b/dot/local/bin/lptext | |||
@@ -1,2 +1,9 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | case "$1" in | ||
3 | -*|'') ;; | ||
4 | *) echo "Warning: $0: ignoring stdin and using first argument as input ($1)" >&2 | ||
5 | exec < "$1" | ||
6 | shift | ||
7 | ;; | ||
8 | esac | ||
2 | text2png | lp "$@" | 9 | text2png | lp "$@" |