summaryrefslogtreecommitdiff
path: root/html2markdown
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 /html2markdown
parent79fdbcea695e41a7d5033f50ac3e99ae52312949 (diff)
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 'html2markdown')
-rw-r--r--html2markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/html2markdown b/html2markdown
index 9549bc4e1..53ea05c08 100644
--- a/html2markdown
+++ b/html2markdown
@@ -30,9 +30,9 @@ REST=${ALL#$ARGS}; REST=${REST# -- }
PANDOC_OPTS=${REST:-$PANDOC_OPTS}
infile=$1
-shift
-if [ -n "$@" ]; then
+if [ $# -gt 1 ]; then
+ shift
echo >&2 "Warning: extra arguments '$@' will be ignored!"
fi