Permalink
Browse files

Install textmate's application support directory as WS_USER instead o…

…f as root so that PlugIns can install
  • Loading branch information...
1 parent 887429c commit 10f235c66c367c097ffdcb6b12763b8a068e7ddd Steve Ellis committed Nov 10, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 recipes/textmate_bundles.rb
@@ -2,10 +2,10 @@
filename = "Pivotal.tmbundle"
tarfile = "#{filename}.tar.gz"
unless File.exists?("#{bundle_dir}/#{filename}")
- directory bundle_dir do
- action :create
- recursive true
- owner WS_USER
+ execute "make textmate bundles directory" do
+ command "mkdir -p '#{bundle_dir}'"
+ user WS_USER
+ not_if { File.exists?(bundle_dir) }
end
remote_file "#{bundle_dir}/#{tarfile}" do
@@ -15,4 +15,4 @@
end
execute "cd \"#{bundle_dir}\"; tar xzf #{tarfile}; rm #{tarfile}"
-end
+end

0 comments on commit 10f235c

Please sign in to comment.