nixpkgs/pkgs/by-name/un/unrar/setup-hook.sh
2024-03-08 09:38:52 +01:00

6 lines
131 B
Bash

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