mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-27 01:00:33 +03:00
Fixed untar on macOS 11
This commit is contained in:
parent
6bb4dfcf90
commit
88a8459b41
|
@ -28,7 +28,14 @@ function untar {
|
||||||
gz|tgz) tar -zxf $in_fname ;;
|
gz|tgz) tar -zxf $in_fname ;;
|
||||||
bz2) tar -jxf $in_fname ;;
|
bz2) tar -jxf $in_fname ;;
|
||||||
zip) unzip -qq $in_fname ;;
|
zip) unzip -qq $in_fname ;;
|
||||||
xz) unxz -c $in_fname | tar -xf - ;;
|
xz) if [ -n "$IS_MACOS" ]; then
|
||||||
|
tar -xf $in_fname
|
||||||
|
else
|
||||||
|
if [[ ! $(type -P "unxz") ]]; then
|
||||||
|
echo xz must be installed to uncompress file; exit 1
|
||||||
|
fi
|
||||||
|
unxz -c $in_fname | tar -xf -
|
||||||
|
fi ;;
|
||||||
*) echo Did not recognize extension $extension; exit 1 ;;
|
*) echo Did not recognize extension $extension; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user