Update 2 files: bootstrap.sh, functions.zsh
This commit is contained in:
+3
-3
@@ -156,7 +156,7 @@ update_repo() {
|
||||
info "Repository up to date"
|
||||
return 0
|
||||
fi
|
||||
info "Repository out of date. Pulling updates..."
|
||||
warn "Repository out of date. Pulling updates..."
|
||||
local old_sha
|
||||
old_sha=$(git rev-parse HEAD)
|
||||
git fetch origin &>/dev/null && git reset --hard origin/master &>/dev/null && git clean -fd &>/dev/null
|
||||
@@ -173,11 +173,11 @@ update_repo() {
|
||||
MISSING=($(check_all))
|
||||
|
||||
if [[ ${#MISSING[@]} -eq 0 ]]; then
|
||||
info "all tools present"
|
||||
success "All Packages Installed"
|
||||
update
|
||||
else
|
||||
install_missing "${MISSING[@]}"
|
||||
fi
|
||||
|
||||
update_repo
|
||||
info "Done Bootstrapping, run \"exec zsh\" or restart your shell"
|
||||
success "Done Bootstrapping, run \"exec zsh\" or restart your shell"
|
||||
|
||||
Reference in New Issue
Block a user