Commit 0d49d3c3 authored by Maxime Hubert's avatar Maxime Hubert
Browse files

fix get-system archive

parent 23fb8a30
Pipeline #137179 passed with stage
in 37 seconds
......@@ -33,13 +33,15 @@ else
fi
archive=`ls`
if [ $name == "" ]; then
python3 -c "import shutil; shutil.unpack_archive('${archive}'); print('Archive uncompressed')"
else
python3 -c "import shutil; shutil.unpack_archive('${archive}', '${name}'); print('Archive uncompressed')"
fi
python3 -c "import shutil; shutil.unpack_archive('${archive}'); print('Archive uncompressed')"
rm $archive
if [ $name != "" ]; then
package=`ls`
mv $package $name
fi
cd ..
mv $archive_dir/* .
rm -r $archive_dir
......
Supports Markdown
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