mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +00:00
29 lines
389 B
Bash
29 lines
389 B
Bash
#! /bin/sh
|
|
# ex:ts=8
|
|
|
|
# $FreeBSD$
|
|
|
|
case "$1" in
|
|
*.zip)
|
|
exec unzip -c "$1" 2>/dev/null
|
|
;;
|
|
*.Z)
|
|
exec uncompress -c "$1" 2>/dev/null
|
|
;;
|
|
*.gz)
|
|
exec gzip -d -c "$1" 2>/dev/null
|
|
;;
|
|
*.bz2)
|
|
exec bzip2 -d -c "$1" 2>/dev/null
|
|
;;
|
|
*.xz)
|
|
exec xz -d -c "$1" 2>/dev/null
|
|
;;
|
|
*.lzma)
|
|
exec lzma -d -c "$1" 2>/dev/null
|
|
;;
|
|
*.zst)
|
|
exec zstd -d -q -c "$1" 2>/dev/null
|
|
;;
|
|
esac
|