1unpackCmdHooks+=(_tryUnrar) 2_tryUnrar() { 3 if ! [[ "$curSrc" =~ \.rar$ ]]; then return 1; fi 4 unrar x "$curSrc" >/dev/null 5}