File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
55and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
66
7+ ## [ Unreleased]
8+
9+ ### Fixed
10+
11+ * Fixed a bug when downloading multiple archives.
12+
713## [ 1.0.5] - 2021-05-19
814
915### Added
Original file line number Diff line number Diff line change @@ -13,18 +13,20 @@ dest=$1; shift
1313
1414script=extract-archive-on-docker
1515
16+ tmpdir=/tmp/mt-dev-extract-archive-$$
17+ mkdir $tmpdir
1618for f in " $@ " ; do
1719 if echo " $f " | egrep -q " ^https?://" ; then
1820 name=$( basename $f )
19- mkdir /tmp/$$
20- path=/tmp/$$ /$name
21- curl -L -o $path $f
21+ path=$tmpdir /$name
22+ curl -s -L -o $path $f
2223 else
2324 name=$f
2425 path=$base /$f
2526 fi
2627 $md5 $path
2728 docker run --rm -v $dest :/dest -v $path :/archive/$name -v $script_dir /$script :/usr/local/bin/$script -w /dest busybox:uclibc /usr/local/bin/$script /dest /archive/$name
2829done
30+ rm -fr $tmpdir
2931
3032docker run --rm -v $dest :/dest busybox:uclibc ls /dest/mt.cgi > /dev/null
Original file line number Diff line number Diff line change 55
66cd ` mktemp -d`
77
8- unzip -q $file || tar zxf $file
8+ ( unzip -q $file || tar zxf $file ) 2>&1 | grep -v ' unzip: short read '
99
1010if [ ` ls | wc -l` -eq " 1" ] && ls | egrep -v ' ^(addons|mt-static|php|alt-tmpl|plugins|default_templates|search_templates|extlib|themes|import|tmpl|tools|lib|.*\.cgi)$' > /dev/null 2>&1 ; then
1111 cd ` ls`
You can’t perform that action at this time.
0 commit comments