nixpkgs/pkgs/tools/archivers/unzip/setup-hook.sh

6 lines
122 B
Bash
Raw Normal View History

unpackCmdHooks+=(_tryUnzip)
_tryUnzip() {
2014-09-08 20:32:37 +00:00
if ! [[ "$curSrc" =~ \.zip$ ]]; then return 1; fi
unzip -qq "$curSrc"
}