nixpkgs/pkgs/tools/archivers/unrar-wrapper/setup-hook.sh
2021-11-09 20:25:49 +02:00

6 lines
131 B
Bash

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