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

6 lines
126 B
Bash
Raw Normal View History

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