mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2025-01-23 17:34:36 +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"
|
||||
opwd="$(pwd)"
|
||||
for d in "${SOURCES}/${1}/${1}-"* ; do
|
||||
if [ -d "${d}/.git" ]; then
|
||||
for d in "${SOURCES}/${1}/${1}-"*/ ; do
|
||||
if [ -d "${d}.git" ]; then
|
||||
if [ "${GIT_FOUND}" = "no" ]; then
|
||||
cd "${d}"
|
||||
if [ "${PKG_URL}" = "$(git remote get-url origin)" ]; then
|
||||
@ -117,7 +117,7 @@ cd "${opwd}"
|
||||
if [ "${GIT_FOUND}" = "no" ]; then
|
||||
build_msg "CLR_GET" "GIT CLONE" "${1}"
|
||||
git clone ${GIT_CLONE_PARAMS} "${PKG_URL}" "${PACKAGE}"
|
||||
elif [ ! "${GIT_DIR}" = "${PACKAGE}" ]; then
|
||||
elif [ ! "${GIT_DIR}" = "${PACKAGE}/" ]; then
|
||||
mv "${GIT_DIR}" "${PACKAGE}"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user