From 243ba70b33b5a570b9d350b7abd6c924599e0f63 Mon Sep 17 00:00:00 2001 From: thilko Date: Sat, 23 Nov 2013 21:54:40 +0100 Subject: [PATCH] using rm_rf to avoid confirmations on delete --- lib/homesick.rb | 2 +- lib/homesick/actions.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/homesick.rb b/lib/homesick.rb index 1049dca..b417c31 100644 --- a/lib/homesick.rb +++ b/lib/homesick.rb @@ -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 diff --git a/lib/homesick/actions.rb b/lib/homesick/actions.rb index edbc5f3..35e3633 100644 --- a/lib/homesick/actions.rb +++ b/lib/homesick/actions.rb @@ -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)