Ports: Use unzip to extract zips if bsdtar unavailable (#855)

This commit is contained in:
Larkin 2019-12-06 13:45:57 -05:00 committed by Andreas Kling
parent d14d6218d1
commit e5e0924c0b
Notes: sideshowbarker 2024-07-19 10:56:59 +09:00

View file

@ -51,7 +51,7 @@ func_defined fetch || fetch() {
run_nocd gunzip "$filename"
;;
*.zip)
run_nocd bsdtar xf "$filename"
run_nocd bsdtar xf "$filename" || run_nocd unzip -qo "$filename"
;;
*)
echo "Note: no case for file $filename."