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

6 lines
126 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"
2016-03-03 10:39:54 +00:00
}