1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

undmg: use file name instead of pipe

There’s some issue in really big files with pipes that doesn’t occur
in filename decompression.
This commit is contained in:
Matthew Bauer 2020-08-19 19:35:29 -05:00
parent 4694b671b1
commit e57df5816d

View file

@ -1,5 +1,5 @@
unpackCmdHooks+=(_tryUnpackDmg)
_tryUnpackDmg() {
if ! [[ "$curSrc" =~ \.dmg$ ]]; then return 1; fi
undmg < "$curSrc"
undmg "$curSrc"
}