nixpkgs/pkgs/tools/archivers/undmg/setup-hook.sh

6 lines
128 B
Bash
Raw Normal View History

2016-03-03 10:39:54 +00:00
unpackCmdHooks+=(_tryUnpackDmg)
_tryUnpackDmg() {
if ! [[ "$curSrc" =~ \.dmg$ ]]; then return 1; fi
undmg < "$curSrc"
}