feat(extract): add cpio support

This commit is contained in:
Xeonacid 2021-06-09 19:29:04 +08:00 committed by Marc Cornellà
commit 0b506fea0c
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B
3 changed files with 3 additions and 1 deletions

View file

@ -70,6 +70,7 @@ extract() {
;;
(*.zst) unzstd "$1" ;;
(*.cab) cabextract -d "$extract_dir" "$1" ;;
(*.cpio) cpio -idmvF "$1" ;;
(*)
echo "extract: '$1' cannot be extracted" >&2
success=1