depot/third_party/nixpkgs/pkgs/tools/archivers/7zz/setup-hook.sh

6 lines
126 B
Bash
Raw Normal View History

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