Commit ba3d8607 authored by User expired's avatar User expired
Browse files

newbib: Unknown option warning, remove debug echo

parent d183c3ca
......@@ -45,7 +45,6 @@ if [ -z "${FULLNAME}" ] && [ -z "${DRYRUN}" ]
then
# Journal will certainly be abbreviated, don't do again.
SKIPJABBR="-s"
echo $SKIPJABBR
fi
......
......@@ -50,7 +50,6 @@ if [ -z "${FULLNAME}" ] && [ -z "${DRYRUN}" ]
then
# Journal will certainly be abbreviated, don't do again.
SKIPJABBR="-s"
echo $SKIPJABBR
fi
......@@ -80,6 +79,14 @@ do
BIBFILE="$arg"
continue
}
# Skip if not a regular file.
test -f "$arg" || {
[[ "$arg" =~ ^- ]] \
&& echo "$(basename $0): $arg: Unknown option" >/dev/stderr \
|| echo "$(basename $0): $arg: File not found" >/dev/stderr;
exit 1
}
done
# If files are not selected, search the newest by suffix.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment