From a2fbb5b7344548a386586ea84d9e94bd35f8f127 Mon Sep 17 00:00:00 2001 From: Dict Xiong Date: Sat, 10 Dec 2022 18:56:11 +0800 Subject: [PATCH] fix ci --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9297baa..e117f80 100755 --- a/install.sh +++ b/install.sh @@ -206,11 +206,16 @@ install_update() cp "${DOTFILES}/.update.sh" "${DOTFILES}/update.sh" chmod +x "${DOTFILES}/update.sh" fmt_note "running update.sh ..." + set +e DFS_UPDATED_RET=85 ${DOTFILES}/update.sh - if [[ $? == 85 ]]; then + RET=$? + if [[ $RET == 85 ]]; then fmt_note "dfs updated. re-running install.sh ..." "${DOTFILES}/install.sh" "$ORIGIN_ARGS" && exit + elif [[ $RET != 0 ]]; then + fmt_fatal "update.sh failed with exit code $RET" fi + set -e } uninstall_update()