diff options
Diffstat (limited to 'bin/pdfcat')
-rwxr-xr-x | bin/pdfcat | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,7 @@ -#!/bin/bash +#!/bin/sh +set -eu +set -o pipefail -local out=$1 +out="$1" shift -gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$out $* +gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="$out" "$@" |