aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcli/jpg2pdf.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/cli/jpg2pdf.sh b/cli/jpg2pdf.sh
index ac992af..9041009 100755
--- a/cli/jpg2pdf.sh
+++ b/cli/jpg2pdf.sh
@@ -1,7 +1,7 @@
#!/bin/sh
#
#############################################################################
-#
+#
# Shellscript to convert a set of JPEG files to a multipage PDF.
#
# Requirements: (1) Ghostscript needs to be installed on the local system.
@@ -18,6 +18,12 @@
#
#############################################################################
+if [ $# -lt 2 ]; then
+ echo "Usage:"
+ echo " `basename $0` output.pdf 1.jpg ..."
+ exit 1
+fi
+
outfile=$1
shift