diff options
Diffstat (limited to 'Master/tlpkg/bin/ctan2tl')
-rwxr-xr-x | Master/tlpkg/bin/ctan2tl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Master/tlpkg/bin/ctan2tl b/Master/tlpkg/bin/ctan2tl index 6a1dd7ab7e0..e685d4ba9c9 100755 --- a/Master/tlpkg/bin/ctan2tl +++ b/Master/tlpkg/bin/ctan2tl @@ -107,6 +107,12 @@ fi # clean up the tmpdir possibly created by tlpkginfo --prepare. ctan_root=`tlpkginfo --ctan-root` if echo "$ctan_dir" | egrep "^$ctan_root" >/dev/null; then :; else + ctan_dir=`cd $ctan_dir && pwd` # canonicalize + slashes=`echo $ctan_dir | tr -cd /` + if test "$slashes" = /; then + echo "$0: only one directory level in CTAN directory: $ctan_dir" >&2 + exit 1 + fi rm -rf $ctan_dir fi fi # end of copying from CTAN. |