mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 21:46:52 +08:00
merge main
This commit is contained in:
commit
bb8404c6b6
|
@ -206,11 +206,16 @@ install_update()
|
||||||
cp "${DOTFILES}/.update.sh" "${DOTFILES}/update.sh"
|
cp "${DOTFILES}/.update.sh" "${DOTFILES}/update.sh"
|
||||||
chmod +x "${DOTFILES}/update.sh"
|
chmod +x "${DOTFILES}/update.sh"
|
||||||
fmt_note "running update.sh ..."
|
fmt_note "running update.sh ..."
|
||||||
|
set +e
|
||||||
DFS_UPDATED_RET=85 ${DOTFILES}/update.sh
|
DFS_UPDATED_RET=85 ${DOTFILES}/update.sh
|
||||||
if [[ $? == 85 ]]; then
|
RET=$?
|
||||||
|
if [[ $RET == 85 ]]; then
|
||||||
fmt_note "dfs updated. re-running install.sh ..."
|
fmt_note "dfs updated. re-running install.sh ..."
|
||||||
"${DOTFILES}/install.sh" "$@" && exit
|
"${DOTFILES}/install.sh" "$@" && exit
|
||||||
|
elif [[ $RET != 0 ]]; then
|
||||||
|
fmt_fatal "update.sh failed with exit code $RET"
|
||||||
fi
|
fi
|
||||||
|
set -e
|
||||||
}
|
}
|
||||||
|
|
||||||
uninstall_update()
|
uninstall_update()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user