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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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
}