install.sh: DFS_UPDATED_RET=85

This commit is contained in:
Dict Xiong 2022-11-27 01:03:53 +08:00
parent 8292737ddd
commit 20f60adb5c

View File

@ -219,8 +219,8 @@ install_update(){
cp "${DOTFILES}/.update.sh" "${DOTFILES}/update.sh"
chmod +x "${DOTFILES}/update.sh"
fmt_note "running update.sh ..."
DFS_UPDATED_RET=1 ${DOTFILES}/update.sh
if [[ $? == 1 ]]; then
DFS_UPDATED_RET=85 ${DOTFILES}/update.sh
if [[ $? == 85 ]]; then
fmt_note "dfs updated. re-running install.sh ..."
"${DOTFILES}/install.sh" && exit
fi