nixpkgs-suyu/pkgs/tools/archivers/unrar/setup-hook.sh

6 lines
131 B
Bash
Raw Normal View History

2015-03-27 21:22:51 +01:00
unpackCmdHooks+=(_tryUnrar)
_tryUnrar() {
if ! [[ "$curSrc" =~ \.rar$ ]]; then return 1; fi
unrar x "$curSrc" >/dev/null
}