aboutsummaryrefslogtreecommitdiff
path: root/html2markdown
diff options
context:
space:
mode:
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