Skip to content

Commit

Permalink
Merge pull request vmware-archive#20 from se3000/master
Browse files Browse the repository at this point in the history
Install textmate's application support directory as WS_USER instead of as root so that PlugIns can install
  • Loading branch information
pivotalcommon committed Nov 16, 2011
2 parents 3209bef + 10f235c commit 756f92f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions recipes/textmate_bundles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -15,4 +15,4 @@
end

execute "cd \"#{bundle_dir}\"; tar xzf #{tarfile}; rm #{tarfile}"
end
end

0 comments on commit 756f92f

Please sign in to comment.