install.sh: bug fix that re-run install.sh after updated needs orgin args

This commit is contained in:
xiongdian.me 2022-12-03 18:17:45 +08:00
parent 854c548b3c
commit cefba82f1c

View File

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