Fix bug.
This commit is contained in:
parent
c559f3bc8d
commit
aec902e964
|
@ -6,10 +6,10 @@ require "announcement/version"
|
||||||
require 'json'
|
require 'json'
|
||||||
bundle_update_flag = ARGV[0]=='update' || ARGV[0]=='install'
|
bundle_update_flag = ARGV[0]=='update' || ARGV[0]=='install'
|
||||||
if bundle_update_flag
|
if bundle_update_flag
|
||||||
|
env_pwd = ENV['PWD']
|
||||||
if File.exist?("#{env_pwd}/app/models/google.rb")
|
if File.exist?("#{env_pwd}/app/models/google.rb")
|
||||||
system("rm -f #{env_pwd}/app/models/google.rb")
|
system("rm -f #{env_pwd}/app/models/google.rb")
|
||||||
end
|
end
|
||||||
env_pwd = ENV['PWD']
|
|
||||||
app_path = File.expand_path(__dir__)
|
app_path = File.expand_path(__dir__)
|
||||||
template_path = env_pwd + '/app/templates'
|
template_path = env_pwd + '/app/templates'
|
||||||
all_template = Dir.glob(template_path+'/*/')
|
all_template = Dir.glob(template_path+'/*/')
|
||||||
|
|
Loading…
Reference in New Issue