depot/third_party/nixpkgs/pkgs/by-name/ri/ripunzip/setup-hook.sh
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

6 lines
152 B
Bash

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