From 3dd4d0fa5d4e8570cacd18ac9663e78b7a33253c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 27 Jun 2011 22:27:02 +0000 Subject: shift when arg is not a dir git-svn-id: svn://tug.org/texlive/trunk@23151 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/kpathsea/ChangeLog | 5 +++++ Build/source/texk/kpathsea/mktexlsr | 1 + 2 files changed, 6 insertions(+) (limited to 'Build/source/texk') diff --git a/Build/source/texk/kpathsea/ChangeLog b/Build/source/texk/kpathsea/ChangeLog index d2be90f4ed6..4e843fee649 100644 --- a/Build/source/texk/kpathsea/ChangeLog +++ b/Build/source/texk/kpathsea/ChangeLog @@ -1,3 +1,8 @@ +2011-06-28 Karl Berry + + * mktexlsr: need to shift when arg is not a directory. + Found by Luigi Scarso, tex-k mail 28 Jun 2011 00:21:14. + 2011-06-19 Karl Berry * texmf.cnf (OPENTYPEFONTS): a duplicate entry was created :(. diff --git a/Build/source/texk/kpathsea/mktexlsr b/Build/source/texk/kpathsea/mktexlsr index 0071a31a211..d3501ce8fe5 100755 --- a/Build/source/texk/kpathsea/mktexlsr +++ b/Build/source/texk/kpathsea/mktexlsr @@ -95,6 +95,7 @@ while test $# -gt 0; do else if test ! -d "$1"; then echo "$progname: $1: not a directory, skipping." >&2 + shift continue fi # By saving the argument in a file, we can later get it back while -- cgit v1.2.3