Skip to content

Commit

Permalink
Add plist file test validator (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
galileavalle authored Mar 29, 2023
1 parent 6ddb55a commit 5e07bc7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.21
0.1.22
2 changes: 1 addition & 1 deletion formula/ih-core.rb
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 7 additions & 2 deletions lib/core/toolrepos/step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 5e07bc7

Please sign in to comment.