using rm_rf to avoid confirmations on delete
This commit is contained in:
@@ -234,7 +234,7 @@ class Homesick < Thor
|
||||
|
||||
if shell.yes?("This will destroy your castle irreversible! Are you sure?")
|
||||
unlink(name)
|
||||
rm_r castle_dir(name)
|
||||
rm_rf castle_dir(name)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
@@ -105,6 +105,7 @@ class Homesick
|
||||
|
||||
def rm_rf(dir)
|
||||
say_status "rm -rf #{dir}", '', :green unless options[:quiet]
|
||||
system "rm -rf #{dir}"
|
||||
end
|
||||
|
||||
def rm_link(target)
|
||||
|
||||
Reference in New Issue
Block a user