Pillow/depends/download-and-extract.sh
2018-11-26 00:05:57 +11:00

13 lines
224 B
Bash
Executable File

#!/bin/sh
# Usage: ./download-and-extract.sh something 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