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"
|
info "Repository up to date"
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
info "Repository out of date. Pulling updates..."
|
warn "Repository out of date. Pulling updates..."
|
||||||
local old_sha
|
local old_sha
|
||||||
old_sha=$(git rev-parse HEAD)
|
old_sha=$(git rev-parse HEAD)
|
||||||
git fetch origin &>/dev/null && git reset --hard origin/master &>/dev/null && git clean -fd &>/dev/null
|
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))
|
MISSING=($(check_all))
|
||||||
|
|
||||||
if [[ ${#MISSING[@]} -eq 0 ]]; then
|
if [[ ${#MISSING[@]} -eq 0 ]]; then
|
||||||
info "all tools present"
|
success "All Packages Installed"
|
||||||
update
|
update
|
||||||
else
|
else
|
||||||
install_missing "${MISSING[@]}"
|
install_missing "${MISSING[@]}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
update_repo
|
update_repo
|
||||||
info "Done Bootstrapping, run \"exec zsh\" or restart your shell"
|
success "Done Bootstrapping, run \"exec zsh\" or restart your shell"
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ dotstate_update() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
info "Repository out of date. Pulling updates..."
|
warn "Repository out of date. Pulling updates..."
|
||||||
local old_sha
|
local old_sha
|
||||||
old_sha=$(git rev-parse HEAD)
|
old_sha=$(git rev-parse HEAD)
|
||||||
git fetch origin &>/dev/null && git reset --hard origin/master &>/dev/null && git clean -fd &>/dev/null
|
git fetch origin &>/dev/null && git reset --hard origin/master &>/dev/null && git clean -fd &>/dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user