Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Install textmate's application support directory as WS_USER instead o…
Browse files Browse the repository at this point in the history
…f as root so that PlugIns can install
  • Loading branch information
Steve Ellis committed Nov 10, 2011
1 parent 887429c commit 10f235c
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 10f235c

Please sign in to comment.