aravindhv10's picture
Routine updates
0be46a0
raw
history blame contribute delete
397 Bytes
#!/bin/sh
get_repo(){
DIR_REPO="${HOME}/GITHUB/$('echo' "${1}" | 'sed' 's/^git@github.com://g ; s@^https://github.com/@@g ; s@.git$@@g' )"
DIR_BASE="$('dirname' '--' "${DIR_REPO}")"
mkdir -pv -- "${DIR_BASE}"
cd "${DIR_BASE}"
git clone "${1}"
cd "${DIR_REPO}"
git pull
git submodule update --recursive --init
}
get_repo 'https://github.com/qianyu-dlut/MVANet.git'