aboutsummaryrefslogtreecommitdiff
path: root/markdown2pdf
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-11-15 00:49:14 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-11-15 00:49:14 +0000
commit8c888ea22c2fe69a068cda26e2ef63e833196bbf (patch)
treeaf724e57d2c8f7b8da70cafa1715630afa513fa9 /markdown2pdf
parent79fdbcea695e41a7d5033f50ac3e99ae52312949 (diff)
downloadpandoc-8c888ea22c2fe69a068cda26e2ef63e833196bbf.tar.gz
Fixed bug with 'shift' in html2markdown and markdown2pdf.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@102 788f1e2b-df1e-0410-8736-df70ead52e1b
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