3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/archivers/undmg/setup-hook.sh
2016-03-03 18:08:48 +01:00

6 lines
128 B
Bash

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