whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: create Library/LaunchAgents if necessary
Date Wed, 27 Nov 2019 14:42:32 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 0bd8eff  create Library/LaunchAgents if necessary
0bd8eff is described below

commit 0bd8eff5d75f457a366cd00faadab35aa34d53f8
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Wed Nov 27 09:42:16 2019 -0500

    create Library/LaunchAgents if necessary
---
 config/setupmymac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/config/setupmymac b/config/setupmymac
index bb505c0..477658a 100755
--- a/config/setupmymac
+++ b/config/setupmymac
@@ -372,6 +372,11 @@ if Process.uid != 0 and option != :docker
   plist = "#{Dir.home}/Library/LaunchAgents/toucher.plist"
   contents = File.read("#{__dir__}/toucher.plist")
   contents[/>(.*ruby.*)</, 1] = RbConfig.ruby
+
+  if not Dir.exist? File.dirname(plist)
+    run "mkdir -p #{File.dirname(plist)}"
+  end
+
   if not File.exist?(plist) or File.read(plist) != contents
     color "$ edit #{plist}"
     File.write plist, contents


Mime
View raw message