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

6 lines
126 B
Bash

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