commit b98019b4d25bdf6fc3781b9b7d5e7d26407ebd1f parent 7e87b66fc3bfcbfc1217c0fcbc3448e4c6b05186 Author: Dominik Schmidt <doeme@bastli.ethz.ch> Date: Wed, 5 Sep 2018 14:35:12 +0200 Add an env-variable to decide whether to print to stdout or not Diffstat:
pipeline/99_print | | | 7 | ++++++- |
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/pipeline/99_print b/pipeline/99_print @@ -1,3 +1,8 @@ #!/bin/sh -lp -d NCR_7167_Receipt_-_Slip -o document-format=text/plain - +if [[ -n "$PRINT_TO_STDOUT" ]] +then + exec cat +else + exec lp -d NCR_7167_Receipt_-_Slip -o document-format=text/plain - +fi