Permalink
Browse files

Use expand_path + ~ for home directory path

  • Loading branch information...
1 parent 62ec144 commit 6ea5524678c38f376dd450170f502d6862a771d4 @aussiegeek aussiegeek committed Jun 3, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 install_templates
View
@@ -2,7 +2,7 @@
require 'fileutils'
-dir = ENV['HOME'] + "/Library/Developer/Xcode/Templates/File\ Templates/Custom\ Templates"
+dir = File.expand_path "~/Library/Developer/Xcode/Templates/File\ Templates/Custom\ Templates"
FileUtils.mkdir_p dir
Dir.glob("*.xctemplate").each do |name|

0 comments on commit 6ea5524

Please sign in to comment.