Added a remove command to prevent directory already exists error.
This commit is contained in:
@@ -42,6 +42,8 @@ if [[ -e ${INSTALL_DIR}/config/* ]]; then
|
|||||||
mkdir -p ${OLD_CONFIG_PATH}
|
mkdir -p ${OLD_CONFIG_PATH}
|
||||||
mv ${INSTALL_DIR} ${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."
|
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
|
fi
|
||||||
|
|
||||||
git clone -b "${BRANCH}" "${REPO_URL}" "${INSTALL_DIR}" -q
|
git clone -b "${BRANCH}" "${REPO_URL}" "${INSTALL_DIR}" -q
|
||||||
|
|||||||
Reference in New Issue
Block a user