Learn more about cloning repositories
You have read-only access
#!/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
Everything looks good. Well let you know here if theres anything you should know about.