From cefba82f1ce84a7068abc7abc1d05e735942edf2 Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Sat, 3 Dec 2022 18:17:45 +0800 Subject: [PATCH] install.sh: bug fix that re-run install.sh after updated needs orgin args --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f0bca65..925873e 100755 --- a/install.sh +++ b/install.sh @@ -204,7 +204,7 @@ install_update(){ DFS_UPDATED_RET=85 ${DOTFILES}/update.sh if [[ $? == 85 ]]; then fmt_note "dfs updated. re-running install.sh ..." - "${DOTFILES}/install.sh" && exit + "${DOTFILES}/install.sh" "$ORIGIN_ARGS" && exit fi } @@ -241,6 +241,7 @@ uninstall(){ fmt_note "done uninstalling!" } +ORIGIN_ARGS="$@" parse_arg "$@" FUNC=install INSTALL_DEP=0