aboutsummaryrefslogtreecommitdiff
path: root/markdown2pdf
diff options
context:
space:
mode:
Diffstat (limited to 'markdown2pdf')
-rw-r--r--markdown2pdf4
1 files changed, 2 insertions, 2 deletions
diff --git a/markdown2pdf b/markdown2pdf
index 0307f73cf..03d43d472 100644
--- a/markdown2pdf
+++ b/markdown2pdf
@@ -59,9 +59,9 @@ done
}
infile=$1
-shift
-if [ -n "$@" ]; then
+if [ $# -gt 1 ]; then
+ shift
echo >&2 "Warning: extra arguments '$@' will be ignored!"
fi