Added a remove command to prevent directory already exists error.

This commit is contained in:
Raphaël Numbus
2026-05-15 12:09:28 +02:00
parent 3cfc72221d
commit 15ba7797b0
+2
View File
@@ -42,6 +42,8 @@ if [[ -e ${INSTALL_DIR}/config/* ]]; then
mkdir -p ${OLD_CONFIG_PATH}
mv ${INSTALL_DIR} ${OLD_CONFIG_PATH}
echo " ✅ Your files have been moved to the ${OLD_CONFIG_PATH} directory. You can retrieve them there if needed."
else
rm -rf "${INSTALL_DIR}"
fi
git clone -b "${BRANCH}" "${REPO_URL}" "${INSTALL_DIR}" -q