summaryrefslogblamecommitdiffstats
blob: a7a0948f2d45d150b6de83cef26e928cdb06641d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                               
                          
                 
#!/bin/bash

# Args
# $1 - Base path
# $2 - base directory of the untarred component
# $3 - name of the component archive


if [ -d $1/$2 ]; then
  echo "Removing $1/$2"
  rm -rf $1/$2
fi

[ ! -d $1 ] && mkdir -p $1
tar -C $1 -zxf $3