core/pkgs/by-name/un/undmg/setup-hook.sh

6 lines
126 B
Bash
Raw Normal View History

2024-05-14 05:42:59 +00:00
unpackCmdHooks+=(_tryUnpackDmg)
_tryUnpackDmg() {
if ! [[ "$curSrc" =~ \.dmg$ ]]; then return 1; fi
undmg "$curSrc"
}