From 7b810d02229f8858edfc0ad3dcb31d486f7cac7f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 6 Jul 2016 20:37:41 +0000 Subject: do an unzip -t git-svn-id: svn://tug.org/texlive/trunk@41644 c570f23f-e606-0410-a88d-b1316a301751 --- Master/tlpkg/libexec/mptopdf-extract | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Master/tlpkg') diff --git a/Master/tlpkg/libexec/mptopdf-extract b/Master/tlpkg/libexec/mptopdf-extract index ea27181b167..2c5e4a26909 100755 --- a/Master/tlpkg/libexec/mptopdf-extract +++ b/Master/tlpkg/libexec/mptopdf-extract @@ -17,11 +17,9 @@ fi # We will extract them from the current context release. ctan=/home/ftp/mirror/rsync.tex.ac.uk/CTAN -#context_zip=$ctan/macros/context/current/cont-tmf.zip -# eventually ... context_zip=/home/ftp/mirror/www.pragma-ade.com/context/current/cont-tmf.zip -if test ! -s $context_zip; then - echo "$0: no context zip:" >&2 +if unzip -tq $context_zip; then :; else + echo "$0: unzip -t failed on:" >&2 ls -l $context_zip >&2 exit 1 fi @@ -29,5 +27,6 @@ fi # Working directory. workdir=/home/ftp/tex/mptopdf cd $workdir || exit 1 -rm -rf * -unzip $context_zip $files +mv * $workdir.prev +unzip -q $context_zip $files +ls -lt | head -3 -- cgit v1.2.3