mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-01 04:20:30 +08:00
install.sh: bug fix that re-run install.sh after updated needs orgin args
This commit is contained in:
parent
854c548b3c
commit
cefba82f1c
@ -204,7 +204,7 @@ install_update(){
|
|||||||
DFS_UPDATED_RET=85 ${DOTFILES}/update.sh
|
DFS_UPDATED_RET=85 ${DOTFILES}/update.sh
|
||||||
if [[ $? == 85 ]]; then
|
if [[ $? == 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
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -241,6 +241,7 @@ uninstall(){
|
|||||||
fmt_note "done uninstalling!"
|
fmt_note "done uninstalling!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ORIGIN_ARGS="$@"
|
||||||
parse_arg "$@"
|
parse_arg "$@"
|
||||||
FUNC=install
|
FUNC=install
|
||||||
INSTALL_DEP=0
|
INSTALL_DEP=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user