File: untar.sh

package info (click to toggle)
r-cran-freetypeharfbuzz 0.2.6%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 524 kB
  • sloc: ansic: 370; sh: 74; makefile: 61
file content (15 lines) | stat: -rwxr-xr-x 163 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env sh

if [ -z $1 ]; then
    echo "No archive file supplied"
    exit 1
fi


if command -v gtar; then
    TAR=gtar
else
    TAR=tar
fi

${TAR} -xf $1