Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,18 @@ update_os_pkg() {
update_brew() {
println "Update Brew Formula's"

if ! check_command brew; then
_brew_path=$(command -v brew 2>/dev/null)
if [ -z "${_brew_path}" ] && [ -x "/home/linuxbrew/.linuxbrew/bin/brew" ]; then
_brew_path="/home/linuxbrew/.linuxbrew/bin/brew"
fi
if [ -z "${_brew_path}" ]; then
print_err "brew is not installed."
return
fi

brew update && brew upgrade && brew cleanup -s
"${_brew_path}" update && "${_brew_path}" upgrade && "${_brew_path}" cleanup -s
println "Brew Diagnostics"
brew doctor && brew missing
"${_brew_path}" doctor && "${_brew_path}" missing
}

# Function: update_vscode_ext
Expand Down
Loading