mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
6 lines
131 B
Bash
6 lines
131 B
Bash
|
unpackCmdHooks+=(_tryUnrar)
|
||
|
_tryUnrar() {
|
||
|
if ! [[ "$curSrc" =~ \.rar$ ]]; then return 1; fi
|
||
|
unrar x "$curSrc" >/dev/null
|
||
|
}
|