nixpkgs-suyu/pkgs/tools/archivers/undmg/setup-hook.sh
2016-03-03 18:08:48 +01:00

5 lines
128 B
Bash

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