This commit is contained in:
Marc Beninca 2024-03-25 20:01:32 +01:00
parent e1607151ee
commit 6890791909
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
7 changed files with 0 additions and 0 deletions

15
cd/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}"