mirror of
https://github.com/oasislinux/oasis.git
synced 2026-02-01 11:34:17 +01:00
12 lines
174 B
Bash
12 lines
174 B
Bash
file=$1
|
|
shift
|
|
|
|
case $file in
|
|
*.tar.gz|*.tgz) tool=gzip ;;
|
|
*.tar.bz2) tool=bzip2 ;;
|
|
*.tar.xz) tool=xz ;;
|
|
*) exit 0
|
|
esac
|
|
|
|
"$tool" -d -c "$file" | "$PAX" -r "$@"
|