Compare commits
3 commits
e1148bfdd8
...
245a071852
Author | SHA1 | Date | |
---|---|---|---|
245a071852 | |||
dffda8c1ec | |||
5aaa437dd8 |
3 changed files with 22 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
||||||
./build.py \
|
if [ -x './build.py' ] ; then
|
||||||
|| \
|
./build.py
|
||||||
./build.sh
|
elif [ -x './build.sh' ] ; then
|
||||||
|
./build.sh
|
||||||
|
else
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
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