fix git dl

This commit is contained in:
2023-10-01 00:06:21 +02:00
parent bc321cedc1
commit 5a81312ef4

View File

@@ -105,7 +105,7 @@ function dlIndy {
#Download the file #Download the file
echo "Downloading file: ${GREEN}$DLURL${CRESET}" echo "Downloading file: ${GREEN}$DLURL${CRESET}"
cd /tmp/CoS cd /tmp/CoS
wget --random-wait -N $DLURL wget --random-wait -N $DLURL
#Unzip the file to a temp directory #Unzip the file to a temp directory
ZDIRNAME=tmpCurseDl ZDIRNAME=tmpCurseDl
@@ -144,7 +144,7 @@ function dlGitAddon {
echo "Cloning from git repository for : ${GREEN}${GDIRNAME}${CRESET}" echo "Cloning from git repository for : ${GREEN}${GDIRNAME}${CRESET}"
git -C "${ADDONPATH}" clone ${DLURL} git -C "${ADDONPATH}" clone ${DLURL}
fi fi
if [ ! -f "${ADDONPATH}/${GDIRNAME}/${GDIRNAME}.lua" ] if [ ! -f "${ADDONPATH}/${GDIRNAME}/${GDIRNAME}.toc" ]
then then
for dir in "${ADDONPATH}/${GDIRNAME}"/*/ for dir in "${ADDONPATH}/${GDIRNAME}"/*/
do do