Skip to content
This repository has been archived by the owner on Oct 27, 2019. It is now read-only.

Commit

Permalink
Merge branch 'uninstall_moves_to_trash'
Browse files Browse the repository at this point in the history
  • Loading branch information
cypher committed May 21, 2008
2 parents e91fef0 + 406ad10 commit e0452e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/textmate
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ class TextmateInstaller < Thor
# named as the bundles_path key. Just in case there are multiple versions of
# the same bundle in multiple bundle paths
local_bundle_paths.each do |name,bundles_path|
FileUtils.rm_rf("#{bundles_path}/#{bundle_name}.tmbundle")
bundle_path = "#{bundles_path}/#{bundle_name}.tmbundle"
if File.exist? bundle_path
%x[osascript -e 'tell application "Finder" to move the POSIX file "#{bundle_path}" to trash']
end
end
puts "Reloading bundles..."
reload
Expand Down

0 comments on commit e0452e2

Please sign in to comment.