diff --git a/VERSION b/VERSION index 4a3e97d..278cbc8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.42 +0.1.43 diff --git a/bin/ih-setup b/bin/ih-setup index 6a9ab19..d17db2b 100755 --- a/bin/ih-setup +++ b/bin/ih-setup @@ -301,11 +301,14 @@ function ih::private::state::is-step-installed() { } function ih::private::upgrade() { - ih::log::info "Checking for updates..." + if ! brew update >/dev/null; then + ih::log::error "brew update failed" + return 1 + fi + local OUTDATED - brew update >/dev/null OUTDATED=$(brew outdated ih-core) if [ -z "$OUTDATED" ]; then ih::log::info "ih-setup is up-to-date" @@ -313,8 +316,11 @@ function ih::private::upgrade() { fi ih::log::info "Upgrading ih-setup" + if ! brew upgrade ih-core; then + ih::log::error "brew upgrade ih-core failed" + return 1 + fi - brew upgrade ih-core || exit 1 ih-setup install } diff --git a/formula/ih-core.rb b/formula/ih-core.rb index 6617e5e..5b7e0c1 100644 --- a/formula/ih-core.rb +++ b/formula/ih-core.rb @@ -1,5 +1,5 @@ class IhCore < Formula - VERSION="0.1.42" + VERSION="0.1.43" desc "Brew formula for installing core tools used at Included Health engineering." homepage "https://github.com/ConsultingMD/homebrew-ih-public" license "CC BY-NC-ND 4.0"