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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
131 B
Bash
Raw Normal View History

2021-11-09 18:03:15 +00:00
unpackCmdHooks+=(_tryUnrar)
_tryUnrar() {
if ! [[ "$curSrc" =~ \.rar$ ]]; then return 1; fi
unrar x "$curSrc" >/dev/null
}