mirror of
https://github.com/oasislinux/oasis.git
synced 2026-05-12 21:34:47 +02:00
ea3cbbd89c
This reduces dependencies and variability in pax implementations.
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 "$@"
|