bug fix: install.sh re-start itself with no args incorrectly

This commit is contained in:
xiongdian.me 2023-02-02 18:05:02 +08:00
parent 7a7bc4ce85
commit d217177371
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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