Pillow/depends/download-and-extract.sh

13 lines
224 B
Bash
Raw Normal View History

#!/bin/sh
2018-11-25 16:05:57 +03:00
# 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
2023-02-08 11:12:14 +03:00
rmdir $archive
tar -xvzf $archive.tar.gz