summaryrefslogtreecommitdiffstats
blob: 8e5cc9fcedfbbf54cff5e524d4869138581a318c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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

tar -C $1 -zxf $3
find $1/$2 -type f -exec touch {} \;