cleanup correctly
This commit is contained in:
@@ -155,7 +155,7 @@ class Homesick < Thor
|
|||||||
rm adjusted_path
|
rm adjusted_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
rm_r castle_dir(name)
|
rm_rf repos_dir + name
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -78,12 +78,12 @@ class Homesick
|
|||||||
|
|
||||||
def rm(file)
|
def rm(file)
|
||||||
say_status "rm #{file}", '', :green unless options[:quiet]
|
say_status "rm #{file}", '', :green unless options[:quiet]
|
||||||
system "rm #{file}"
|
system "rm #{file}" if File.exists?(file)
|
||||||
end
|
end
|
||||||
|
|
||||||
def rm_r(dir)
|
def rm_rf(dir)
|
||||||
say_status "rm -r #{dir}", '', :green unless options[:quiet]
|
say_status "rm -rf #{dir}", '', :green unless options[:quiet]
|
||||||
system "rm -r #{dir}"
|
system "rm -rf #{dir}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def ln_s(source, destination, config = {})
|
def ln_s(source, destination, config = {})
|
||||||
|
|||||||
Reference in New Issue
Block a user