mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-29 19:36:19 +03:00
13 lines
233 B
Bash
13 lines
233 B
Bash
|
#!/bin/bash
|
||
|
# Usage: ./download-and-extract.sh something.tar.gz https://example.com/something.tar.gz
|
||
|
|
||
|
archive=$1
|
||
|
url=$2
|
||
|
|
||
|
if [ ! -f $archive.tar.gz ]; then
|
||
|
wget -O $archive.tar.gz $url
|
||
|
fi
|
||
|
|
||
|
rm -r $archive
|
||
|
tar -xvzf $archive.tar.gz
|