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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
114 B
Bash
Raw Normal View History

2016-12-17 12:04:59 +00:00
unpackCmdHooks+=(_try7zip)
_try7zip() {
if ! [[ "$curSrc" =~ \.7z$ ]]; then return 1; fi
7z x "$curSrc"
}