mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 14:16:59 +08:00
bug fix: install.sh re-start itself with no args incorrectly
This commit is contained in:
parent
7a7bc4ce85
commit
d217177371
|
@ -255,7 +255,7 @@ install_update()
|
||||||
RET=$?
|
RET=$?
|
||||||
if [[ $RET == 85 ]]; then
|
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" "${ORIGIN_ARGS[@]}" && exit
|
||||||
elif [[ $RET != 0 ]]; then
|
elif [[ $RET != 0 ]]; then
|
||||||
fmt_fatal "update.sh failed with exit code $RET"
|
fmt_fatal "update.sh failed with exit code $RET"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -31,7 +31,7 @@ if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
|
||||||
done
|
done
|
||||||
set -- "${ORIGIN_ARGS[@]}"
|
set -- "${ORIGIN_ARGS[@]}"
|
||||||
unset ARG
|
unset ARG
|
||||||
unset ORIGIN_ARGS
|
# outputs: GOT_OPTS and ORIGIN_ARGS
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Color settings
|
# Color settings
|
||||||
|
|
Loading…
Reference in New Issue
Block a user