mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-24 17:26:32 +00:00
Fixed bug with 'shift' in html2markdown and markdown2pdf.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@102 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user