clone-python
This commit is contained in:
parent
e1148bfdd8
commit
5aaa437dd8
1 changed files with 15 additions and 0 deletions
15
cd-clone-python
Executable file
15
cd-clone-python
Executable file
|
@ -0,0 +1,15 @@
|
|||
[ "${1}" ] && REPOSITORY_FULL="${1}" || exit
|
||||
REPOSITORY_NAME="$(basename ${REPOSITORY_FULL})"
|
||||
|
||||
REPOSITORY_TEMP="$(mktemp --directory)"
|
||||
|
||||
git clone \
|
||||
-- \
|
||||
"${GITHUB_SERVER_URL}/${REPOSITORY_FULL}" \
|
||||
"${REPOSITORY_TEMP}"
|
||||
|
||||
mv "${REPOSITORY_TEMP}/${REPOSITORY_NAME}" \
|
||||
/usr/local/lib/python3.*/dist-packages/
|
||||
|
||||
rm --force --recursive \
|
||||
"${REPOSITORY_TEMP}"
|
Loading…
Reference in a new issue