You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

25 lines
419 B

# Exit on errors
set -e
SCRIPT_DIR=$(dirname "$0")
PREFIX=$1
# Get Absolute Paths & Setup
SCRIPT_DIR=$(dirname "$0")
pushd "${SCRIPT_DIR}"
SCRIPT_DIR=$(pwd)
popd
if [ "${PREFIX}" = "" ]; then
PREFIX="${SCRIPT_DIR}/local"
fi
if [ -d "${PREFIX}" ]; then
pushd "${PREFIX}"
PREFIX=$(pwd)
popd
fi
TMP_DIR="${SCRIPT_DIR}/tmp"
sh clean_repos_in_parent_dir.sh
rm -rf "${PREFIX}"
rm -rf "${TMP_DIR}"