depot/third_party/nixpkgs/pkgs/by-name/ri/ripunzip/setup-hook.sh

7 lines
152 B
Bash
Raw Normal View History

unpackCmdHooks+=(_tryRipunzip)
_tryRipunzip() {
if ! [[ "$curSrc" =~ \.zip$ ]]; then return 1; fi
ripunzip unzip-file "$curSrc" 2> /dev/null
}