From d217177371d625777fc0173b1d2acd0aa7504290 Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Thu, 2 Feb 2023 18:05:02 +0800 Subject: [PATCH] bug fix: install.sh re-start itself with no args incorrectly --- install.sh | 2 +- tools/common.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index b4d660e..04717cf 100755 --- a/install.sh +++ b/install.sh @@ -255,7 +255,7 @@ install_update() RET=$? if [[ $RET == 85 ]]; then fmt_note "dfs updated. re-running install.sh ..." - "${DOTFILES}/install.sh" "$@" && exit + "${DOTFILES}/install.sh" "${ORIGIN_ARGS[@]}" && exit elif [[ $RET != 0 ]]; then fmt_fatal "update.sh failed with exit code $RET" fi diff --git a/tools/common.sh b/tools/common.sh index 2a163b5..d2253dd 100755 --- a/tools/common.sh +++ b/tools/common.sh @@ -31,7 +31,7 @@ if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then done set -- "${ORIGIN_ARGS[@]}" unset ARG - unset ORIGIN_ARGS + # outputs: GOT_OPTS and ORIGIN_ARGS fi # Color settings