clone-python

This commit is contained in:
Marc Beninca 2024-03-23 19:44:27 +01:00
parent e1148bfdd8
commit 5aaa437dd8
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

15
cd-clone-python Executable file
View 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}"