depot/third_party/nixpkgs/pkgs/tools/archivers/p7zip/setup-hook.sh

5 lines
114 B
Bash

unpackCmdHooks+=(_try7zip)
_try7zip() {
if ! [[ "$curSrc" =~ \.7z$ ]]; then return 1; fi
7z x "$curSrc"
}