aboutsummaryrefslogtreecommitdiff
path: root/markdown2pdf
diff options
context:
space:
mode:
Diffstat (limited to 'markdown2pdf')
-rw-r--r--markdown2pdf5
1 files changed, 5 insertions, 0 deletions
diff --git a/markdown2pdf b/markdown2pdf
index 03d43d472..7799b1077 100644
--- a/markdown2pdf
+++ b/markdown2pdf
@@ -60,6 +60,11 @@ done
infile=$1
+if ! [ -r $infile ]; then
+ echo >&2 "'$infile' not found"
+ exit 1
+fi
+
if [ $# -gt 1 ]; then
shift
echo >&2 "Warning: extra arguments '$@' will be ignored!"