mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
get_git: check only folder, not files
this prevents removal of potential archive files in the same sources subfolder for a package
This commit is contained in:
parent
5a67b4194d
commit
64f9f95998
@ -72,8 +72,8 @@ fi
|
|||||||
|
|
||||||
GIT_FOUND="no"
|
GIT_FOUND="no"
|
||||||
opwd="$(pwd)"
|
opwd="$(pwd)"
|
||||||
for d in "${SOURCES}/${1}/${1}-"* ; do
|
for d in "${SOURCES}/${1}/${1}-"*/ ; do
|
||||||
if [ -d "${d}/.git" ]; then
|
if [ -d "${d}.git" ]; then
|
||||||
if [ "${GIT_FOUND}" = "no" ]; then
|
if [ "${GIT_FOUND}" = "no" ]; then
|
||||||
cd "${d}"
|
cd "${d}"
|
||||||
if [ "${PKG_URL}" = "$(git remote get-url origin)" ]; then
|
if [ "${PKG_URL}" = "$(git remote get-url origin)" ]; then
|
||||||
@ -117,7 +117,7 @@ cd "${opwd}"
|
|||||||
if [ "${GIT_FOUND}" = "no" ]; then
|
if [ "${GIT_FOUND}" = "no" ]; then
|
||||||
build_msg "CLR_GET" "GIT CLONE" "${1}"
|
build_msg "CLR_GET" "GIT CLONE" "${1}"
|
||||||
git clone ${GIT_CLONE_PARAMS} "${PKG_URL}" "${PACKAGE}"
|
git clone ${GIT_CLONE_PARAMS} "${PKG_URL}" "${PACKAGE}"
|
||||||
elif [ ! "${GIT_DIR}" = "${PACKAGE}" ]; then
|
elif [ ! "${GIT_DIR}" = "${PACKAGE}/" ]; then
|
||||||
mv "${GIT_DIR}" "${PACKAGE}"
|
mv "${GIT_DIR}" "${PACKAGE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user