mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-04-24 14:07:05 +08:00
install.sh: fix install dep
This commit is contained in:
parent
f39193f28f
commit
e149152e50
|
@ -233,6 +233,7 @@ uninstall_update(){
|
|||
|
||||
install(){
|
||||
install_update
|
||||
if [[ "$INSTALL_DEP" == "1" ]]; then install_dependencies; fi
|
||||
preinstall_check
|
||||
install_crontab
|
||||
install_file_content
|
||||
|
@ -258,13 +259,14 @@ uninstall(){
|
|||
|
||||
parse_arg "$@"
|
||||
FUNC=install
|
||||
INSTALL_DEP=0
|
||||
for i in ${PARSE_ARG_RET[@]}; do
|
||||
case $i in
|
||||
-i ) FUNC=install ;;
|
||||
-r ) FUNC=uninstall ;;
|
||||
-d|--dev ) export DFS_DEV=1 ;;
|
||||
-l|--lite ) export DFS_LITE=1 ;;
|
||||
-a|--auto ) install_dependencies ;;
|
||||
-a|--auto ) INSTALL_DEP=1 ;;
|
||||
* ) fmt_fatal "unknown option \"$i\". available: -i, -r, -q, -d, -l, -a" ;;
|
||||
esac
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue
Block a user