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:
parent
79fdbcea69
commit
8c888ea22c
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue