Pillow/depends/download-and-extract.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
237 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 --no-verbose -O $archive.tar.gz $url
fi
2023-02-08 11:12:14 +03:00
rmdir $archive
tar -xvzf $archive.tar.gz