summaryrefslogtreecommitdiff
path: root/dot/local/bin/lptext
diff options
context:
space:
mode:
Diffstat (limited to 'dot/local/bin/lptext')
-rwxr-xr-xdot/local/bin/lptext7
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
2case "$1" in
3 -*|'') ;;
4 *) echo "Warning: $0: ignoring stdin and using first argument as input ($1)" >&2
5 exec < "$1"
6 shift
7 ;;
8esac
2text2png | lp "$@" 9text2png | lp "$@"