From 5e07bc7b03d8224050701355803941d469868d8d Mon Sep 17 00:00:00 2001 From: Galilea Valle <122331496+galileavalle@users.noreply.github.com> Date: Wed, 29 Mar 2023 13:55:21 -0600 Subject: [PATCH] Add plist file test validator (#49) --- VERSION | 2 +- formula/ih-core.rb | 2 +- lib/core/toolrepos/step.sh | 9 +++++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 7906299..7e72641 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.21 +0.1.22 diff --git a/formula/ih-core.rb b/formula/ih-core.rb index 7e36aae..645db6e 100644 --- a/formula/ih-core.rb +++ b/formula/ih-core.rb @@ -1,5 +1,5 @@ class IhCore < Formula - VERSION="0.1.21" + VERSION="0.1.22" 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" diff --git a/lib/core/toolrepos/step.sh b/lib/core/toolrepos/step.sh index 53981cf..eaea49a 100644 --- a/lib/core/toolrepos/step.sh +++ b/lib/core/toolrepos/step.sh @@ -68,8 +68,13 @@ function ih::setup::core.toolrepos::test-or-install() { cp -f "$toolsrepo_src_path" "$toolsrepo_tgt_path" - ih::setup::core.toolrepos::set-auto-update-repositories-job - + PLIST_FILE="$HOME/Library/LaunchAgents/com.includedhealth.auto-update-repositories.plist" + if [ ! -f "$PLISTFILE" ]; then + if [ "$1" == "test" ]; then + return 1 + fi + ih::setup::core.toolrepos::set-auto-update-repositories-job + fi } function ih::setup::core.toolrepos::set-auto-update-repositories-job() {