Commit 12cbcabc authored by Andrew Murray's avatar Andrew Murray
Browse files

Expand xz file with tar on macOS

parent 5ff77918
...@@ -200,7 +200,11 @@ function untar { ...@@ -200,7 +200,11 @@ 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
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
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment