From a5647e9a394954a765ded0e38daee1ffdc7e2ff1 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sat, 5 Jan 2013 23:48:47 -0500 Subject: [PATCH] Moving new to old directory --- source/downloads/code/migrator.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/downloads/code/migrator.rb b/source/downloads/code/migrator.rb index 7f6059f..9a6d684 100755 --- a/source/downloads/code/migrator.rb +++ b/source/downloads/code/migrator.rb @@ -89,6 +89,10 @@ begin # migrate updated plugins (but leave deprecated ones) FileUtils.cp_r new_octo_dir("plugins"), old_octo_dir("plugins") + # move new to old's location + FileUtils.rm_rf old_octo_dir + FileUtils.mv new_octo_dir, old_octo_dir + # cleanup FileUtils.rm_rf new_octo_dir