From 0c4187ddf3e4268c8458e22a61f803480ebc346b Mon Sep 17 00:00:00 2001 From: bohung Date: Sat, 13 Mar 2021 19:31:39 +0800 Subject: [PATCH] Fix bug. --- lib/personal_plugin_generator/engine.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/personal_plugin_generator/engine.rb b/lib/personal_plugin_generator/engine.rb index aa1755c..38425a1 100644 --- a/lib/personal_plugin_generator/engine.rb +++ b/lib/personal_plugin_generator/engine.rb @@ -70,7 +70,8 @@ module PersonalPluginGenerator if %x[#{git} config user.email].empty? %x[#{git} config --global user.email "orbit@rulingcom.com"] end - system("cd #{ENV['PWD']} && sh -l -c \"#{git_add_except_public} ; #{git} commit -m auto_backup_before_#{type}_#{time_now} --allow-empty && #{git} reset #{commit} --mixed ; #{git_add_custom} ; #{git_restore} ; #{git_add_except_public} ; #{git} clean -f -- app/models ; #{git} commit -m complete_#{type}_#{time_now} --allow-empty\"") + puts "Updating orbit-kernel..." + system("cd #{ENV['PWD']} && bash -l -c \"#{git_add_except_public} ; #{git} commit -m auto_backup_before_#{type}_#{time_now} --allow-empty && #{git} reset #{commit} --mixed ; #{git_add_custom} ; #{git_restore} ; #{git_add_except_public} ; #{git} clean -f -- app/models ; #{git} commit -m complete_#{type}_#{time_now} --allow-empty\" > /dev/null") puts "Updated! " + new_updates.first.to_s end end